mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Convert to USES=gmake and USES=tk
- STAGE-clean - Fix installed files and directories permissions
This commit is contained in:
parent
2e1bf085bc
commit
0923d84072
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339701
2 changed files with 40 additions and 9 deletions
|
@ -17,12 +17,18 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libitk.so:${PORTSDIR}/x11-toolkits/itk \
|
||||||
${LOCALBASE}/lib/libitcl.so:${PORTSDIR}/lang/itcl
|
${LOCALBASE}/lib/libitcl.so:${PORTSDIR}/lang/itcl
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/smm/Install.unix
|
WRKSRC= ${WRKDIR}/smm/Install.unix
|
||||||
USE_GMAKE= yes
|
USES= gmake tk
|
||||||
USE_TK= 84+
|
|
||||||
EXTRACT_AFTER_ARGS=--exclude CVS
|
EXTRACT_AFTER_ARGS=--exclude CVS
|
||||||
|
|
||||||
NO_STAGE= yes
|
MAKE_ENV+= STAGEDIR=${STAGEDIR}
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e 's,itkarray=.*,itkarray=${WISH},' ${WRKSRC}/itk.sh
|
${REINPLACE_CMD} -e 's,itkarray=.*,itkarray=${WISH},' ${WRKSRC}/itk.sh
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${FIND} ${STAGEDIR}${PREFIX}/lib/smm -type f | ${XARGS} \
|
||||||
|
${CHMOD} ${SHAREMODE}
|
||||||
|
${FIND} ${STAGEDIR}${PREFIX}/lib/smm -type d | ${XARGS} \
|
||||||
|
${CHMOD} 755
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- Makefile.orig Wed May 1 17:15:20 2002
|
--- Makefile.orig 2002-05-01 23:15:20.000000000 +0200
|
||||||
+++ Makefile Wed Jun 12 20:02:20 2002
|
+++ Makefile 2014-01-14 17:56:34.000000000 +0100
|
||||||
@@ -11,8 +11,8 @@
|
@@ -11,8 +11,8 @@
|
||||||
|
|
||||||
# --- The default settings will install SMM++ nicely into an
|
# --- The default settings will install SMM++ nicely into an
|
||||||
|
@ -11,12 +11,37 @@
|
||||||
|
|
||||||
# --- If you don't have root access, you could choose to install
|
# --- If you don't have root access, you could choose to install
|
||||||
# SMM++ locally in your home directory. Therefore use the
|
# SMM++ locally in your home directory. Therefore use the
|
||||||
@@ -57,6 +57,8 @@
|
@@ -58,6 +58,8 @@
|
||||||
# --- You don't need to edit/understand/read the rest of
|
|
||||||
# this Makefile. If you can read Makefiles, feel free
|
# this Makefile. If you can read Makefiles, feel free
|
||||||
# to do whatever you like.
|
# to do whatever you like.
|
||||||
+
|
|
||||||
+all: smm
|
|
||||||
|
|
||||||
|
+all: smm
|
||||||
|
+
|
||||||
smm: Makefile
|
smm: Makefile
|
||||||
@echo "--- Building startup file."
|
@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}
|
||||||
|
|
Loading…
Add table
Reference in a new issue