opnsense-ports/net/smm++/files/patch-Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

47 lines
1.5 KiB
Text

--- Makefile.orig 2002-05-01 23:15:20.000000000 +0200
+++ Makefile 2014-01-14 17:56:34.000000000 +0100
@@ -11,8 +11,8 @@
# --- The default settings will install SMM++ nicely into an
# usual unix environment (if you have root access).
-BIN=/usr/local/bin
-SRC=/usr/local/lib/smm
+BIN=${PREFIX}/bin
+SRC=${PREFIX}/lib/smm
# --- If you don't have root access, you could choose to install
# SMM++ locally in your home directory. Therefore use the
@@ -58,6 +58,8 @@
# this Makefile. If you can read Makefiles, feel free
# to do whatever you like.
+all: smm
+
smm: Makefile
@echo "--- Building startup file."
@if [ -z ${ITKWISH} ] ; then \
@@ -80,18 +82,18 @@
@echo "--- Installing startup file to '${BIN}'."
@echo " Please make sure, that '${BIN}' is part of your PATH variable."
@echo " Or start SMM++ with ${BIN}/smm."
- @install -d ${BIN}
- @install -c smm ${BIN}
+ @install -d ${STAGEDIR}${BIN}
+ @install -c smm ${STAGEDIR}${BIN}
uninstall-bin:
@echo "--- Uninstalling startup file from '${BIN}'."
@echo " Leaving the bin-dir untouched."
@rm -f ${BIN}/smm
install-src:
@echo "--- Installing libraries to ${SRC}."
- @install -d ${SRC}
- @cp -Rp ../sources ${SRC}
- @cp -Rp ../images ${SRC}
- @cp -Rp ../config ${SRC}
+ @install -d ${STAGEDIR}${SRC}
+ @cp -Rp ../sources ${STAGEDIR}${SRC}
+ @cp -Rp ../images ${STAGEDIR}${SRC}
+ @cp -Rp ../config ${STAGEDIR}${SRC}
uninstall-src:
@echo "--- Uninstalling libraries from ${SRC}."
@rm -rf ${SRC}