Commit 470bae16 authored by PoroCYon's avatar PoroCYon
Browse files

fix autogen stuff

parent 0c841b84
......@@ -462,7 +462,7 @@ EOF
sspt_config() {
mkdir -p "$REL_DIR/cmake-build"
pushd "$REL_DIR/cmake-build" >/dev/null
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=\$SSPT_DEST_DIR
cmake .. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=\$SSPT_DEST_DIR"
popd >/dev/null
}
sspt_build() {
......@@ -495,7 +495,7 @@ sspt_build() {
make -j$(nproc)
}
sspt_install() {
make install PREFIX=\$SSPT_DEST_DIR prefix=\$SSPT_DEST_DIR
make install "PREFIX=\$SSPT_DEST_DIR" "prefix=\$SSPT_DEST_DIR"
}
sspt_clean() {
make clean
......@@ -503,11 +503,30 @@ sspt_clean() {
sspt_clean_config() {
rm "$REL_DIR/*akefile"
}
EOF
elif [ -f "./configure.ac" ]; then
cat >> "$SSPT_FILE" <<EOF
sspt_config() {
autoreconf -i
"$REL_DIR/configure" "--prefix=\$SSPT_DEST_DIR"
}
sspt_build() {
make -j$(nproc)
}
sspt_install() {
make install
}
sspt_clean() {
make clean
}
sspt_clean_config() {
rm -rf "$REL_DIR/configure" "$REL_DIR/"*akefile "$REL_DIR/"config.*
}
EOF
elif [ -f "./configure" ]; then
cat >> "$SSPT_FILE" <<EOF
sspt_config() {
"$REL_DIR/configure" --prefix=\$SSPT_DEST_DIR
"$REL_DIR/configure" "--prefix=\$SSPT_DEST_DIR"
}
sspt_build() {
make -j$(nproc)
......@@ -532,7 +551,7 @@ sspt_build() {
make -f "$MAKEFILE" -j$(nproc)
}
sspt_install() {
make -f "$MAKEFILE" install PREFIX=\$SSPT_DEST_DIR prefix=\$SSPT_DEST_DIR
make -f "$MAKEFILE" install "PREFIX=\$SSPT_DEST_DIR" "prefix=\$SSPT_DEST_DIR" "DESTDIR=\$SSPT_DEST_DIR"
}
sspt_clean() {
make -f "$MAKEFILE" clean
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment