View | Details | Raw Unified | Return to bug 213746 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/Scripts/smart_makepatch.sh (-1 / +1 lines)
Lines 247-253 install_regenerated_patches() { Link Here
247
	local testdir=$(find ${DESTDIR} -empty)
247
	local testdir=$(find ${DESTDIR} -empty)
248
	if [ -z "${testdir}" ]; then
248
	if [ -z "${testdir}" ]; then
249
		mkdir -p ${PATCHDIR}
249
		mkdir -p ${PATCHDIR}
250
		find ${DESTDIR} -type f -exec mv {} ${PATCHDIR}/ \;
250
		find ${DESTDIR} -type f -exec mv {} ${PATCHDIR}/ +
251
	fi
251
	fi
252
}
252
}
253
253
(-)Mk/bsd.port.mk (-2 / +2 lines)
Lines 4521-4528 compress-man: Link Here
4521
		[ -d $$dir ] && mdirs="$$mdirs $$dir" ;\
4521
		[ -d $$dir ] && mdirs="$$mdirs $$dir" ;\
4522
	done ; \
4522
	done ; \
4523
	for dir in $$mdirs; do \
4523
	for dir in $$mdirs; do \
4524
		${FIND} $$dir -type f \! -name "*.gz" -links 1 -exec ${GZIP_CMD} {} \; ; \
4524
		${FIND} $$dir -type f \! -name "*.gz" -links 1 -exec ${GZIP_CMD} {} + ; \
4525
		${FIND} $$dir -type f \! -name "*.gz" \! -links 1 -exec ${STAT} -f '%i' {} \; | \
4525
		${FIND} $$dir -type f \! -name "*.gz" \! -links 1 -exec ${STAT} -f '%i' {} + | \
4526
			${SORT} -u | while read inode ; do \
4526
			${SORT} -u | while read inode ; do \
4527
				unset ref ; \
4527
				unset ref ; \
4528
				for f in $$(${FIND} $$dir -type f -inum $${inode} -print); do \
4528
				for f in $$(${FIND} $$dir -type f -inum $${inode} -print); do \
(-)Tools/scripts/bad-pkgdescrs.sh (-1 / +1 lines)
Lines 12-18 usage(){ Link Here
12
DIR=${1-/usr/ports}
12
DIR=${1-/usr/ports}
13
[ -d ${DIR} ] || usage
13
[ -d ${DIR} ] || usage
14
14
15
find ${DIR}/ -name pkg-descr -exec md5 -r {} \; 2>/dev/null | 	\
15
find ${DIR}/ -name pkg-descr -exec md5 -r {} + 2>/dev/null | 	\
16
	sort | 							\
16
	sort | 							\
17
	xargs -L 9999999999 |					\
17
	xargs -L 9999999999 |					\
18
	awk '							\
18
	awk '							\
(-)archivers/deco/Makefile (-1 / +1 lines)
Lines 44-49 do-install: Link Here
44
	${RM} -r ${WRKSRC}/../${PORTNAME}-archive-1.7/${i}
44
	${RM} -r ${WRKSRC}/../${PORTNAME}-archive-1.7/${i}
45
.endfor
45
.endfor
46
	@cd ${WRKDIR}/${PORTNAME}-archive-1.7/x/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
46
	@cd ${WRKDIR}/${PORTNAME}-archive-1.7/x/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
47
	@${FIND} ${STAGEDIR}${DATADIR} -type f -exec ${CHMOD} +x {} \;
47
	@${FIND} ${STAGEDIR}${DATADIR} -type f -exec ${CHMOD} +x {} +
48
48
49
.include <bsd.port.mk>
49
.include <bsd.port.mk>
(-)archivers/zipper/Makefile (-1 / +1 lines)
Lines 15-20 USES= gnustep Link Here
15
USE_GNUSTEP=	back build
15
USE_GNUSTEP=	back build
16
16
17
post-patch:
17
post-patch:
18
	cd ${WRKSRC} && ${FIND} . -name "*#*" -exec ${RM} -v "{}" ";"
18
	cd ${WRKSRC} && ${FIND} . -name "*#*" -exec ${RM} -v {} +
19
19
20
.include <bsd.port.mk>
20
.include <bsd.port.mk>
(-)astro/astrometry/Makefile (-2 / +2 lines)
Lines 38-45 post-install: Link Here
38
	@${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||' \
38
	@${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||' \
39
		${STAGEDIR}${PREFIX}/${PORTNAME}/etc/${PORTNAME}.cfg
39
		${STAGEDIR}${PREFIX}/${PORTNAME}/etc/${PORTNAME}.cfg
40
	@${FIND} ${STAGEDIR}${PREFIX}/${PORTNAME}/bin \
40
	@${FIND} ${STAGEDIR}${PREFIX}/${PORTNAME}/bin \
41
		-type f -not -name "*.py" -exec ${STRIP_CMD} {} \;
41
		-type f -not -name "*.py" -exec ${STRIP_CMD} {} +
42
	@${FIND} ${STAGEDIR}${PREFIX}/${PORTNAME}/lib \
42
	@${FIND} ${STAGEDIR}${PREFIX}/${PORTNAME}/lib \
43
		-type f -name "*.so" -exec ${STRIP_CMD} {} \;
43
		-type f -name "*.so" -exec ${STRIP_CMD} {} +
44
44
45
.include <bsd.port.mk>
45
.include <bsd.port.mk>
(-)astro/tclgeomap/Makefile (-3 / +3 lines)
Lines 23-36 post-patch: Link Here
23
23
24
do-install:
24
do-install:
25
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/tclgeomap
25
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/tclgeomap
26
	${FIND} ${WRKSRC}/.. -name "*.h" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/include/tclgeomap \;
26
	${FIND} ${WRKSRC}/.. -name "*.h" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/include/tclgeomap +
27
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/tclgeomap
27
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/tclgeomap
28
	${INSTALL_DATA} ${WRKSRC}/../library/tclgeomap_procs.tcl ${STAGEDIR}${PREFIX}/lib/tclgeomap
28
	${INSTALL_DATA} ${WRKSRC}/../library/tclgeomap_procs.tcl ${STAGEDIR}${PREFIX}/lib/tclgeomap
29
	${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/tclgeomap
29
	${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/tclgeomap
30
	${INSTALL_DATA} ${WRKSRC}/libtclgeomap.so ${STAGEDIR}${PREFIX}/lib/libtclgeomap.so.0
30
	${INSTALL_DATA} ${WRKSRC}/libtclgeomap.so ${STAGEDIR}${PREFIX}/lib/libtclgeomap.so.0
31
	${LN} -sf libtclgeomap.so.0 ${STAGEDIR}${PREFIX}/lib/libtclgeomap.so
31
	${LN} -sf libtclgeomap.so.0 ${STAGEDIR}${PREFIX}/lib/libtclgeomap.so
32
	${FIND} ${WRKSRC}/../doc -name "*.3" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/man/man3 \;
32
	${FIND} ${WRKSRC}/../doc -name "*.3" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/man/man3 +
33
	${FIND} ${WRKSRC}/../doc -name "*.n" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/man/mann \;
33
	${FIND} ${WRKSRC}/../doc -name "*.n" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/man/mann +
34
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtclgeomap.so.0
34
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtclgeomap.so.0
35
35
36
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)astro/tkgeomap/Makefile (-2 / +2 lines)
Lines 28-41 post-patch: Link Here
28
28
29
do-install:
29
do-install:
30
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/tkgeomap
30
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/tkgeomap
31
	${FIND} ${WRKSRC}/.. -name "*.h" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/include/tkgeomap \;
31
	${FIND} ${WRKSRC}/.. -name "*.h" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/include/tkgeomap +
32
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/tkgeomap
32
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/tkgeomap
33
	${INSTALL_DATA} ${WRKSRC}/../library/tkgeomap_procs.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
33
	${INSTALL_DATA} ${WRKSRC}/../library/tkgeomap_procs.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
34
	${INSTALL_DATA} ${WRKSRC}/../library/wdgeomap.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
34
	${INSTALL_DATA} ${WRKSRC}/../library/wdgeomap.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
35
	${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
35
	${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/tkgeomap
36
	${INSTALL_DATA} ${WRKSRC}/libtkgeomap.so ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so.0
36
	${INSTALL_DATA} ${WRKSRC}/libtkgeomap.so ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so.0
37
	${LN} -sf libtkgeomap.so.0 ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so
37
	${LN} -sf libtkgeomap.so.0 ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so
38
	${FIND} ${WRKSRC}/../doc -name "*.n" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/man/mann \;
38
	${FIND} ${WRKSRC}/../doc -name "*.n" -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/man/mann +
39
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so.0
39
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtkgeomap.so.0
40
40
41
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)audio/atunes/Makefile (-3 / +2 lines)
Lines 21-27 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} Link Here
21
21
22
OPTIONS_DEFINE=		CDDA2WAV
22
OPTIONS_DEFINE=		CDDA2WAV
23
23
24
OPTIONS_MULTI=		ENCODER ENGINE
24
#OPTIONS_MULTI=		ENCODER ENGINE
25
25
26
OPTIONS_MULTI_ENCODER=	LAME VORBIS FLAC
26
OPTIONS_MULTI_ENCODER=	LAME VORBIS FLAC
27
OPTIONS_MULTI_ENGINE=	MPLAYER XINE
27
OPTIONS_MULTI_ENGINE=	MPLAYER XINE
Lines 60-67 do-install: Link Here
60
.for file in ${INSTALL_FILES}
60
.for file in ${INSTALL_FILES}
61
	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DATADIR}/${file}
61
	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DATADIR}/${file}
62
.endfor
62
.endfor
63
	@(cd ${WRKSRC} && ${FIND} lib -type f -name "*.jar" -exec ${INSTALL_DATA} {} \
63
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${STAGEDIR}${DATADIR} '-type f -name *\.jar')
64
		${STAGEDIR}${DATADIR}/{} \;)
65
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} settings ${STAGEDIR}${DATADIR}/)
64
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} settings ${STAGEDIR}${DATADIR}/)
66
.for file in ${PIXMAPS}
65
.for file in ${PIXMAPS}
67
	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/share/pixmaps
66
	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/share/pixmaps
(-)audio/pd-cyclone/Makefile (-2 / +2 lines)
Lines 34-41 post-patch: Link Here
34
do-install:
34
do-install:
35
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/pd-externals/cyclone
35
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/pd-externals/cyclone
36
	${FIND} ${WRKSRC} -name "*.pd" -exec ${INSTALL_DATA} {} \
36
	${FIND} ${WRKSRC} -name "*.pd" -exec ${INSTALL_DATA} {} \
37
		${STAGEDIR}${PREFIX}/lib/pd-externals/cyclone \;
37
		${STAGEDIR}${PREFIX}/lib/pd-externals/cyclone +
38
	${FIND} ${WRKSRC} -name "*.pd_linux" -exec ${INSTALL_PROGRAM} {} \
38
	${FIND} ${WRKSRC} -name "*.pd_linux" -exec ${INSTALL_PROGRAM} {} \
39
		${STAGEDIR}${PREFIX}/lib/pd-externals/cyclone \;
39
		${STAGEDIR}${PREFIX}/lib/pd-externals/cyclone +
40
40
41
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)audio/praat/Makefile (-2 / +2 lines)
Lines 28-36 USE_GCC= yes Link Here
28
28
29
post-patch:
29
post-patch:
30
	@${FIND} ${WRKSRC} -name Makefile -exec \
30
	@${FIND} ${WRKSRC} -name Makefile -exec \
31
		${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS +=|' "{}" \;
31
		${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS +=|' {} +
32
	@${FIND} ${WRKSRC} -name Makefile -exec \
32
	@${FIND} ${WRKSRC} -name Makefile -exec \
33
		${REINPLACE_CMD} -e 's|^CPPFLAGS =|CPPFLAGS +=|' "{}" \;
33
		${REINPLACE_CMD} -e 's|^CPPFLAGS =|CPPFLAGS +=|' {} +
34
	@${CP} ${FILESDIR}/makefile.defs.freebsd.alsa \
34
	@${CP} ${FILESDIR}/makefile.defs.freebsd.alsa \
35
		${WRKSRC}/makefile.defs
35
		${WRKSRC}/makefile.defs
36
	@${REINPLACE_CMD} -e 's|%%WRKSRC%%|${WRKSRC}|g' \
36
	@${REINPLACE_CMD} -e 's|%%WRKSRC%%|${WRKSRC}|g' \
(-)chinese/librime/Makefile (-1 / +1 lines)
Lines 35-40 BROKEN_powerpc64= Does not build on powerpc64 Link Here
35
35
36
post-patch:     .SILENT
36
post-patch:     .SILENT
37
	${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \
37
	${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \
38
		-exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' '{}' \;
38
		-exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' {} +
39
39
40
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)chinese/phpbb-tw/Makefile (-2 / +2 lines)
Lines 86-92 do-install: Link Here
86
#	@ cd ${DATADIR} && ${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
86
#	@ cd ${DATADIR} && ${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
87
#	  ${EXCEPTFILES} ${PREFIX}/${PHPBBDIR}
87
#	  ${EXCEPTFILES} ${PREFIX}/${PHPBBDIR}
88
	@ ${MKDIR} ${STAGEDIR}${DOCSDIR}
88
	@ ${MKDIR} ${STAGEDIR}${DOCSDIR}
89
	@ cd ${WRKSRC}/docs && ${FIND} * -type f -maxdepth 0 \! -name \*.bak \
89
	@ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
90
	  \! -name COPYING -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR} \;
90
		'! -name *\.bak ! -name COPYING'
91
91
92
.include <bsd.port.mk>
92
.include <bsd.port.mk>
(-)chinese/wordpress-zh_CN/Makefile (-1 / +1 lines)
Lines 47-53 pre-install: Link Here
47
do-install:
47
do-install:
48
	${MKDIR} ${STAGEDIR}${WWWDIR}/
48
	${MKDIR} ${STAGEDIR}${WWWDIR}/
49
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
49
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
50
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
50
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w {} +
51
51
52
do-install-DOCS-on:
52
do-install-DOCS-on:
53
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
53
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
(-)chinese/wordpress-zh_TW/Makefile (-1 / +1 lines)
Lines 47-53 pre-install: Link Here
47
do-install:
47
do-install:
48
	${MKDIR} ${STAGEDIR}${WWWDIR}/
48
	${MKDIR} ${STAGEDIR}${WWWDIR}/
49
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
49
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
50
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
50
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w {} +
51
51
52
do-install-DOCS-on:
52
do-install-DOCS-on:
53
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
53
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
(-)chinese/xpdf/Makefile (-2 / +2 lines)
Lines 52-61 do-install: Link Here
52
	${MKDIR} ${STAGEDIR}${DATADIR}/chinese-traditional/CMap
52
	${MKDIR} ${STAGEDIR}${DATADIR}/chinese-traditional/CMap
53
	cd ${STAGEDIR}${DATADIR}/chinese-traditional/CMap && \
53
	cd ${STAGEDIR}${DATADIR}/chinese-traditional/CMap && \
54
	    ${FIND} ${ADOBECMAPDIR}/ac15/CMap \
54
	    ${FIND} ${ADOBECMAPDIR}/ac15/CMap \
55
		-type f -exec ${LN} -s -f {} . \;
55
		-type f -exec ${LN} -s -f {} . +
56
	${MKDIR} ${STAGEDIR}${DATADIR}/chinese-simplified/CMap
56
	${MKDIR} ${STAGEDIR}${DATADIR}/chinese-simplified/CMap
57
	cd ${STAGEDIR}${DATADIR}/chinese-simplified/CMap && \
57
	cd ${STAGEDIR}${DATADIR}/chinese-simplified/CMap && \
58
	    ${FIND} ${ADOBECMAPDIR}/ag15/CMap \
58
	    ${FIND} ${ADOBECMAPDIR}/ag15/CMap \
59
		-type f -exec ${LN} -s -f {} . \;
59
		-type f -exec ${LN} -s -f {} . +
60
60
61
.include <bsd.port.mk>
61
.include <bsd.port.mk>
(-)comms/atslog/Makefile (-15 / +7 lines)
Lines 81-109 do-install: Link Here
81
.endfor
81
.endfor
82
	@${MKDIR} ${STAGEDIR}${DATADIR}/lang
82
	@${MKDIR} ${STAGEDIR}${DATADIR}/lang
83
	(cd ${WRKSRC}/include && \
83
	(cd ${WRKSRC}/include && \
84
	${FIND} lang -type f ! -iregex ".*Makefile" -exec \
84
		${COPYTREE_SHARE} lang ${STAGEDIR}${DATADIR} '-type f -not -iregex .*Makefile')
85
		${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;)
86
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/textlogs
85
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/textlogs
87
	(cd ${WRKSRC}/data && \
86
	(cd ${WRKSRC}/data && \
88
	${FIND} textlogs -type f -exec \
87
		${COPYTREE_SHARE} textlogs ${STAGEDIR}${EXAMPLESDIR} '-type f')
89
		${INSTALL_DATA} "{}" "${STAGEDIR}${EXAMPLESDIR}/{}" \;)
90
	@${MKDIR} ${STAGEDIR}${DATADIR}/sql
88
	@${MKDIR} ${STAGEDIR}${DATADIR}/sql
91
	(cd ${WRKSRC}/data && \
89
	(cd ${WRKSRC}/data && \
92
	${FIND} sql -type f -iregex ".*\.sql" -exec \
90
		${COPYTREE_SHARE} sql ${STAGEDIR}${DATADIR} '-type f -iregex .*\.sql')
93
		${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;)
94
	${INSTALL_SCRIPT} ${WRKSRC}/data/sql/install-sql.pl ${STAGEDIR}${DATADIR}/sql
91
	${INSTALL_SCRIPT} ${WRKSRC}/data/sql/install-sql.pl ${STAGEDIR}${DATADIR}/sql
95
	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
92
	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
96
	(cd ${WRKSRC}/libexec && \
93
	(cd ${WRKSRC}/libexec && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/libexec/${PORTNAME} \
97
	${FIND} -E . -type f ! -iregex ".*\.(sh|orig)" -exec \
94
		'-type f -not -iregex .*\.sh -not -iregex .*\.orig')
98
		${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/{}" \;)
99
	${INSTALL_SCRIPT} ${WRKSRC}/libexec/genindex.sh ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
95
	${INSTALL_SCRIPT} ${WRKSRC}/libexec/genindex.sh ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
100
101
	@${MKDIR} ${STAGEDIR}${WWWDIR}
96
	@${MKDIR} ${STAGEDIR}${WWWDIR}
102
	cd ${WRKSRC}/www && \
97
	(cd ${WRKSRC}/www && \
103
	${FIND} . -type d ! -empty -exec \
98
		${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} '-not -iregex .*\Makefile -not -iregex .*\.orig')
104
		${MKDIR} "${STAGEDIR}${WWWDIR}/{}" \; && \
105
	${FIND} -E . -type f ! -iregex "(.*Makefile|.*\.orig)" -exec \
106
		${INSTALL_DATA} "{}" "${STAGEDIR}${WWWDIR}/{}" \;
107
	${MV} ${STAGEDIR}${WWWDIR}/include/config.inc.php.default ${STAGEDIR}${WWWDIR}/include/config.inc.php.sample
99
	${MV} ${STAGEDIR}${WWWDIR}/include/config.inc.php.default ${STAGEDIR}${WWWDIR}/include/config.inc.php.sample
108
100
109
do-install-DOCS-on:
101
do-install-DOCS-on:
(-)databases/datamodeler/Makefile (-1 / +1 lines)
Lines 61-67 do-install: Link Here
61
		-not -name "*.bat" \
61
		-not -name "*.bat" \
62
		-not -name "*.bak" \
62
		-not -name "*.bak" \
63
		-not -name "*.dll" \
63
		-not -name "*.dll" \
64
		-exec ${INSTALL_DATA} \{} ${STAGEDIR}/${DATADIR}/\{} \;
64
		-exec ${INSTALL_DATA} {} ${STAGEDIR}/${DATADIR} +
65
	@${ECHO_MSG} " [ DONE ]"
65
	@${ECHO_MSG} " [ DONE ]"
66
.endfor
66
.endfor
67
67
(-)databases/firebird25-server/Makefile (-1 / +1 lines)
Lines 114-120 MAKE_ENV+= FIREBIRD_TMP="${WRKDIR}" FIREBIRD_LOCK="${WRKDIR}" Link Here
114
MAKE_ARGS+=	PREFIX="${STAGEDIR}${PREFIX}"
114
MAKE_ARGS+=	PREFIX="${STAGEDIR}${PREFIX}"
115
115
116
post-patch:
116
post-patch:
117
	${FIND} ${WRKSRC} -name "*.sh" -exec ${CHMOD} +x {} \+
117
	${FIND} ${WRKSRC} -name "*.sh" -exec ${CHMOD} +x {} +
118
	${REINPLACE_CMD} -e \
118
	${REINPLACE_CMD} -e \
119
			's|/isql|/isql-fb|g' -e \
119
			's|/isql|/isql-fb|g' -e \
120
			's|/gstat|/fbstat|g' -e \
120
			's|/gstat|/fbstat|g' -e \
(-)databases/freetds-devel/Makefile (-2 / +2 lines)
Lines 81-89 post-install: Link Here
81
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/userguide
81
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/userguide
82
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/reference
82
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/reference
83
	@${FIND} ${WRKSRC}/doc/userguide \( -type f -o -type l \) \
83
	@${FIND} ${WRKSRC}/doc/userguide \( -type f -o -type l \) \
84
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/userguide ';'
84
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/userguide +
85
	@${FIND} ${WRKSRC}/doc/reference \( -type f -o -type l \) \
85
	@${FIND} ${WRKSRC}/doc/reference \( -type f -o -type l \) \
86
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/reference ';'
86
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/reference +
87
	@cd ${WRKSRC}/doc && \
87
	@cd ${WRKSRC}/doc && \
88
		${COPYTREE_SHARE} images ${STAGEDIR}${DOCSDIR}
88
		${COPYTREE_SHARE} images ${STAGEDIR}${DOCSDIR}
89
89
(-)databases/kyotocabinet/Makefile (-2 / +2 lines)
Lines 32-38 post-patch: Link Here
32
32
33
post-install:
33
post-install:
34
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libkyotocabinet.so.16.13.0
34
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libkyotocabinet.so.16.13.0
35
	${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} '{}' \;
35
	${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} {} +
36
	${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} '{}' \;
36
	${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} {} +
37
37
38
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)databases/kyototycoon/Makefile (-2 / +2 lines)
Lines 32-38 post-patch: Link Here
32
32
33
post-install:
33
post-install:
34
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libkyototycoon.so.2.19.0 ${STAGEDIR}${PREFIX}/libexec/*.so
34
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libkyototycoon.so.2.19.0 ${STAGEDIR}${PREFIX}/libexec/*.so
35
	${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} '{}' \;
35
	${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} {} +
36
	${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} '{}' \;
36
	${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} {} +
37
37
38
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)databases/libgda5/Makefile (-1 / +1 lines)
Lines 114-120 post-patch: Link Here
114
	@${FIND} ${WRKSRC} -name Makefile.in -exec ${REINPLACE_CMD} \
114
	@${FIND} ${WRKSRC} -name Makefile.in -exec ${REINPLACE_CMD} \
115
		-e 's|$$(top_builddir)/libgda/libgda-5.0.la|-lgda-5.0|g' \
115
		-e 's|$$(top_builddir)/libgda/libgda-5.0.la|-lgda-5.0|g' \
116
		-e 's|../libgda/libgda-5.0.la|-lgda-5.0|g' \
116
		-e 's|../libgda/libgda-5.0.la|-lgda-5.0|g' \
117
		{} \;
117
		{} +
118
.endif
118
.endif
119
119
120
.if ${LIBGDA5_SLAVE} == jdbc
120
.if ${LIBGDA5_SLAVE} == jdbc
(-)databases/pgfouine/Makefile (-1 / +1 lines)
Lines 19-25 pre-configure: Link Here
19
	${REINPLACE_CMD} -e 's,/usr/bin/php,${LOCALBASE}/bin/php,g;' \
19
	${REINPLACE_CMD} -e 's,/usr/bin/php,${LOCALBASE}/bin/php,g;' \
20
		-e 's,!!PREFIX!!,${PREFIX},g' \
20
		-e 's,!!PREFIX!!,${PREFIX},g' \
21
		${WRKSRC}/pgfouine.php ${WRKSRC}/pgfouine_vacuum.php
21
		${WRKSRC}/pgfouine.php ${WRKSRC}/pgfouine_vacuum.php
22
	${FIND} -d ${WRKSRC} -type d -name 'CVS' -exec ${RM} -r {} \;
22
	${FIND} -d ${WRKSRC} -type d -name 'CVS' -exec ${RM} -r {} +
23
23
24
do-install:
24
do-install:
25
	${INSTALL_SCRIPT} ${WRKSRC}/pgfouine.php ${STAGEDIR}${PREFIX}/bin/pgfouine
25
	${INSTALL_SCRIPT} ${WRKSRC}/pgfouine.php ${STAGEDIR}${PREFIX}/bin/pgfouine
(-)deskutils/freemind/Makefile (-3 / +1 lines)
Lines 35-43 do-build: Link Here
35
	${ZIP_CMD} -u lib/freemind.jar freemind.properties)
35
	${ZIP_CMD} -u lib/freemind.jar freemind.properties)
36
36
37
do-install:
37
do-install:
38
	cd ${WRKSRC} \
38
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATAFILES}" ${STAGEDIR}${DATADIR}
39
	  && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; \
40
	  && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
41
	${INSTALL_SCRIPT} ${WRKDIR}/freemind.sh ${STAGEDIR}${PREFIX}/bin/freemind
39
	${INSTALL_SCRIPT} ${WRKDIR}/freemind.sh ${STAGEDIR}${PREFIX}/bin/freemind
42
40
43
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)deskutils/openproj/Makefile (-3 / +1 lines)
Lines 18-26 DATAFILES= lib license openproj.jar readme.html Link Here
18
SUB_FILES=	openproj.sh
18
SUB_FILES=	openproj.sh
19
19
20
do-install:
20
do-install:
21
	cd ${WRKSRC} \
21
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATAFILES}" ${STAGEDIR}${DATADIR}
22
	  && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; \
23
	  && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
24
	${INSTALL_SCRIPT} ${WRKDIR}/openproj.sh ${STAGEDIR}${PREFIX}/bin/openproj
22
	${INSTALL_SCRIPT} ${WRKDIR}/openproj.sh ${STAGEDIR}${PREFIX}/bin/openproj
25
23
26
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)deskutils/phpicalendar/Makefile (-1 / +1 lines)
Lines 33-39 OPTIONS_DEFINE= DOCS Link Here
33
33
34
do-install:
34
do-install:
35
	${MKDIR} ${STAGEDIR}${WWWDIR}
35
	${MKDIR} ${STAGEDIR}${WWWDIR}
36
	@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} {} \;
36
	@${FIND} ${WRKSRC} -name \*.orig -delete
37
	@${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php.sample
37
	@${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php.sample
38
.for dir in admin calendars functions images includes languages lib nicetitle rss templates
38
.for dir in admin calendars functions images includes languages lib nicetitle rss templates
39
	@${CP} -Rv ${WRKSRC}/${dir} ${STAGEDIR}${WWWDIR}
39
	@${CP} -Rv ${WRKSRC}/${dir} ${STAGEDIR}${WWWDIR}
(-)deskutils/plans/Makefile (-2 / +2 lines)
Lines 60-66 post-patch: Link Here
60
do-install:
60
do-install:
61
	@${MKDIR} ${STAGEDIR}${WWWDIR}
61
	@${MKDIR} ${STAGEDIR}${WWWDIR}
62
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
62
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
63
	@${FIND} ${STAGEDIR}${WWWDIR} -name '*.cgi' -exec ${CHMOD} 755 {} \;
63
	@${FIND} ${STAGEDIR}${WWWDIR} -name '*.cgi' -exec ${CHMOD} 755 {} +
64
	@${FIND} ${STAGEDIR}${WWWDIR} -name '*.xml.sample' -exec ${CHMOD} 664 {} \;
64
	@${FIND} ${STAGEDIR}${WWWDIR} -name '*.xml.sample' -exec ${CHMOD} 664 {} +
65
65
66
.include <bsd.port.mk>
66
.include <bsd.port.mk>
(-)devel/bugzilla44/Makefile (-2 / +2 lines)
Lines 108-114 post-patch: Link Here
108
	${FIND} ${WRKSRC} -type f \( -name \*.cgi -o -name \*.html -o -name \*.pl -o -name \*.pm -o -name \*.t -o -name \*.txt -o -name \*.xml \) \
108
	${FIND} ${WRKSRC} -type f \( -name \*.cgi -o -name \*.html -o -name \*.pl -o -name \*.pm -o -name \*.t -o -name \*.txt -o -name \*.xml \) \
109
		-exec ${SED} -i '' -e "s=/usr/bin/perl=${PERL}=g; \
109
		-exec ${SED} -i '' -e "s=/usr/bin/perl=${PERL}=g; \
110
			s!/usr/lib/sendmail!/usr/sbin/sendmail!g; \
110
			s!/usr/lib/sendmail!/usr/sbin/sendmail!g; \
111
			s!/var/www/html/bugzilla!${WWWDIR}!" {} \+
111
			s!/var/www/html/bugzilla!${WWWDIR}!" {} +
112
.if ${PORT_OPTIONS:MPGSQL} && ! ${PORT_OPTIONS:MMYSQL}
112
.if ${PORT_OPTIONS:MPGSQL} && ! ${PORT_OPTIONS:MMYSQL}
113
	${REINPLACE_CMD} -e "s/'mysql'/'Pg'/" ${WRKSRC}/Bugzilla/Install/Localconfig.pm
113
	${REINPLACE_CMD} -e "s/'mysql'/'Pg'/" ${WRKSRC}/Bugzilla/Install/Localconfig.pm
114
.endif
114
.endif
Lines 119-125 pre-install: Link Here
119
do-install:	.SILENT
119
do-install:	.SILENT
120
	@${MKDIR} ${STAGEDIR}${WWWDIR}
120
	@${MKDIR} ${STAGEDIR}${WWWDIR}
121
	${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name "UPGRADING*" -exec \
121
	${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name "UPGRADING*" -exec \
122
		${INSTALL_SCRIPT} {} ${STAGEDIR}${WWWDIR} \;
122
		${INSTALL_SCRIPT} {} ${STAGEDIR}${WWWDIR} +
123
	@${MKDIR} ${DATA_DIRS_LIST:S!^!${STAGEDIR}${WWWDIR}/!}
123
	@${MKDIR} ${DATA_DIRS_LIST:S!^!${STAGEDIR}${WWWDIR}/!}
124
.for D in ${DATA_DIRS_LIST}
124
.for D in ${DATA_DIRS_LIST}
125
	(cd ${WRKSRC}/${D} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${D})
125
	(cd ${WRKSRC}/${D} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${D})
(-)devel/bugzilla50/Makefile (-2 / +2 lines)
Lines 111-117 post-patch: Link Here
111
	${REINPLACE_CMD} -e 's|/opt/bugzilla|${WWWDIR}|' ${WRKSRC}/importxml.pl
111
	${REINPLACE_CMD} -e 's|/opt/bugzilla|${WWWDIR}|' ${WRKSRC}/importxml.pl
112
	${FIND} ${WRKSRC} -type f \( -name \*.cgi -o -name \*.pl -o -name \*.pm -o -name \*.t \) \
112
	${FIND} ${WRKSRC} -type f \( -name \*.cgi -o -name \*.pl -o -name \*.pm -o -name \*.t \) \
113
		-exec ${SED} -i '' -e "s=/usr/bin/perl=${PERL}=g; \
113
		-exec ${SED} -i '' -e "s=/usr/bin/perl=${PERL}=g; \
114
			s!/usr/lib/sendmail!/usr/sbin/sendmail!g;" {} \+
114
			s!/usr/lib/sendmail!/usr/sbin/sendmail!g;" {} +
115
115
116
.if ${PORT_OPTIONS:MPGSQL} && ! ${PORT_OPTIONS:MMYSQL}
116
.if ${PORT_OPTIONS:MPGSQL} && ! ${PORT_OPTIONS:MMYSQL}
117
	${REINPLACE_CMD} -e "s/'mysql'/'Pg'/" ${WRKSRC}/Bugzilla/Install/Localconfig.pm
117
	${REINPLACE_CMD} -e "s/'mysql'/'Pg'/" ${WRKSRC}/Bugzilla/Install/Localconfig.pm
Lines 123-129 pre-install: Link Here
123
do-install:	.SILENT
123
do-install:	.SILENT
124
	@${MKDIR} ${STAGEDIR}${WWWDIR}
124
	@${MKDIR} ${STAGEDIR}${WWWDIR}
125
	${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name "UPGRADING*" -exec \
125
	${FIND} ${WRKSRC} \! -type d -maxdepth 1 \! -name "UPGRADING*" -exec \
126
		${INSTALL_SCRIPT} {} ${STAGEDIR}${WWWDIR} \;
126
		${INSTALL_SCRIPT} {} ${STAGEDIR}${WWWDIR} +
127
	@${MKDIR} ${DATA_DIRS_LIST:S!^!${STAGEDIR}${WWWDIR}/!}
127
	@${MKDIR} ${DATA_DIRS_LIST:S!^!${STAGEDIR}${WWWDIR}/!}
128
.for D in ${DATA_DIRS_LIST}
128
.for D in ${DATA_DIRS_LIST}
129
	(cd ${WRKSRC}/${D} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${D})
129
	(cd ${WRKSRC}/${D} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/${D})
(-)devel/ccache/pkg-plist (-1 / +1 lines)
Lines 5-8 man/man1/ccache.1.gz Link Here
5
%%TINDERBOX%%%%DATADIR%%/ccache.tar
5
%%TINDERBOX%%%%DATADIR%%/ccache.tar
6
@postexec echo "Create compiler links..."
6
@postexec echo "Create compiler links..."
7
@postexec %D/bin/ccache-update-links -v
7
@postexec %D/bin/ccache-update-links -v
8
@preunexec find %D/%%CCLINKDIR%% -type l -exec rm -f {} \;
8
@preunexec find %D/%%CCLINKDIR%% -type l -delete
(-)devel/ccrtp/Makefile (-1 / +1 lines)
Lines 21-27 INFO= ccrtp Link Here
21
21
22
post-patch:
22
post-patch:
23
	@cd ${WRKSRC}/src && \
23
	@cd ${WRKSRC}/src && \
24
		${FIND} * -type f -exec ${REINPLACE_CMD} -i "" -e "s|<malloc.h>|<stdlib.h>|g" "{}" \;
24
		${FIND} . -type f -exec ${REINPLACE_CMD} -i "" -e "s|<malloc.h>|<stdlib.h>|g" {} +
25
25
26
post-configure:
26
post-configure:
27
	@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
27
	@${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
(-)devel/cdialog/Makefile (-1 / +1 lines)
Lines 33-39 CONFIGURE_ARGS+= --with-curses-dir=${NCURSESBASE} Link Here
33
.endif
33
.endif
34
34
35
post-patch:
35
post-patch:
36
	@${FIND} ${WRKSRC}/samples/ -type f -exec ${REINPLACE_CMD} -i "" "s|dialog|cdialog|g" {} \;
36
	@${FIND} ${WRKSRC}/samples/ -type f -exec ${REINPLACE_CMD} -i "" "s|dialog|cdialog|g" {} +
37
	@${REINPLACE_CMD} -e 's|$$(INSTALL_DATA) $$(LIB)|$$(INSTALL_DATA) -s $$(LIB)|'\
37
	@${REINPLACE_CMD} -e 's|$$(INSTALL_DATA) $$(LIB)|$$(INSTALL_DATA) -s $$(LIB)|'\
38
		${WRKSRC}/${MAKEFILE}.in
38
		${WRKSRC}/${MAKEFILE}.in
39
39
(-)devel/clig/Makefile (-1 / +1 lines)
Lines 27-33 OPTIONS_DEFINE= DOCS Link Here
27
27
28
post-patch:
28
post-patch:
29
	@${RM} ${WRKSRC}/example/.cvsignore
29
	@${RM} ${WRKSRC}/example/.cvsignore
30
	@${FIND} -d ${WRKSRC} -type d -and -name CVS -exec ${RM} -r {} \;
30
	@${FIND} -d ${WRKSRC} -type d -and -name CVS -exec ${RM} -r {} +
31
	@${REINPLACE_CMD} -e 's|/usr/bin/tclsh|${TCLSH}|; \
31
	@${REINPLACE_CMD} -e 's|/usr/bin/tclsh|${TCLSH}|; \
32
		s|/doc/|/share/doc/|; \
32
		s|/doc/|/share/doc/|; \
33
		s|-$$(VERSION)||;' \
33
		s|-$$(VERSION)||;' \
(-)devel/elfio/Makefile (-2 / +2 lines)
Lines 39-45 post-install-DOCS-on: Link Here
39
39
40
post-install-EXAMPLES-on:
40
post-install-EXAMPLES-on:
41
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
41
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
42
	@${FIND} ${WRKSRC}/Examples/ -name "*.cpp" -exec ${INSTALL_DATA} {} \
42
	${FIND} ${WRKSRC}/Examples -name "*.cpp" -exec ${INSTALL_DATA} {} \
43
		${STAGEDIR}${EXAMPLESDIR}/ \;
43
		${STAGEDIR}${EXAMPLESDIR} \;
44
44
45
.include <bsd.port.mk>
45
.include <bsd.port.mk>
(-)devel/flyspray/Makefile (-1 / +1 lines)
Lines 59-65 post-patch: Link Here
59
	@${REINPLACE_CMD} -e "s|%%FLYSPRAYDIR%%|"${FLYSPRAYDIR}"|g" \
59
	@${REINPLACE_CMD} -e "s|%%FLYSPRAYDIR%%|"${FLYSPRAYDIR}"|g" \
60
		-e "s|%%DOCSDIR%%|"${DOCSDIR}"|g" \
60
		-e "s|%%DOCSDIR%%|"${DOCSDIR}"|g" \
61
		${WRKSRC}/docs/README.FreeBSD
61
		${WRKSRC}/docs/README.FreeBSD
62
	@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} '{}' ';'
62
	@${FIND} ${WRKSRC} -name \*.orig -delete
63
	@${REINPLACE_CMD} "s|E_ALL|E_ALL \& ~E_STRICT|g" \
63
	@${REINPLACE_CMD} "s|E_ALL|E_ALL \& ~E_STRICT|g" \
64
		${WRKSRC}/includes/fix.inc.php
64
		${WRKSRC}/includes/fix.inc.php
65
	@${RM} ${WRKSRC}/includes/fix.inc.php.bak
65
	@${RM} ${WRKSRC}/includes/fix.inc.php.bak
(-)devel/gitblit/Makefile (-1 / +1 lines)
Lines 75-80 do-install: Link Here
75
	(cd ${STAGEDIR}${GB_HOME}/WEB-INF/data && \
75
	(cd ${STAGEDIR}${GB_HOME}/WEB-INF/data && \
76
		${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PORTNAME})
76
		${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PORTNAME})
77
	(cd ${STAGEDIR}${PREFIX}/${PORTNAME} && ${FIND} . -type f \
77
	(cd ${STAGEDIR}${PREFIX}/${PORTNAME} && ${FIND} . -type f \
78
		-not -name '*.gitignore' -exec ${MV} '{}' '{}'.sample \;)
78
		-not -name '*.gitignore' -exec ${MV} {} {}.sample \;)
79
79
80
.include <bsd.port.mk>
80
.include <bsd.port.mk>
(-)devel/gitolite/Makefile (-3 / +3 lines)
Lines 36-45 GITUSER_VARS= USERS=git GROUPS=git Link Here
36
post-patch:
36
post-patch:
37
	@${FIND} ${WRKSRC} \
37
	@${FIND} ${WRKSRC} \
38
		-exec ${GREP} -qs \#\!/usr/bin/perl {} \; \
38
		-exec ${GREP} -qs \#\!/usr/bin/perl {} \; \
39
		-exec ${REINPLACE_CMD} -Ee 's|#!/usr/bin/perl|#!${PERL}|' {} \;
39
		-exec ${REINPLACE_CMD} -Ee 's|#!/usr/bin/perl|#!${PERL}|' {} +
40
	@${FIND} ${WRKSRC} \
40
	@cd ${WRKSRC} && ${FIND} . \
41
		-exec ${GREP} -qs \#\!/bin/bash {} \; \
41
		-exec ${GREP} -qs \#\!/bin/bash {} \; \
42
		-exec ${REINPLACE_CMD} -Ee 's|#!/bin/bash|#!${LOCALBASE}/bin/bash|' {} \;
42
		-exec ${REINPLACE_CMD} -Ee 's|#!/bin/bash|#!${LOCALBASE}/bin/bash|' {} +
43
43
44
do-build:
44
do-build:
45
	echo "${GH_TAGNAME}" > ${WRKSRC}/src/VERSION
45
	echo "${GH_TAGNAME}" > ${WRKSRC}/src/VERSION
(-)devel/jakarta-commons-configuration/Makefile (-4 / +1 lines)
Lines 31-39 PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar Link Here
31
do-install:
31
do-install:
32
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
32
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
33
		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
33
		${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
34
	cd ${WRKSRC}/apidocs && ${FIND} . -type d -exec ${MKDIR} \
34
	cd ${WRKSRC}/apidocs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
35
		${STAGEDIR}${DOCSDIR}/{} \;
36
	cd ${WRKSRC}/apidocs && ${FIND} . -type f -exec ${INSTALL_DATA} {} \
37
		${STAGEDIR}${DOCSDIR}/{} \;
38
35
39
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)devel/maven3/Makefile (-4 / +1 lines)
Lines 33-42 post-extract: Link Here
33
	${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
33
	${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
34
34
35
do-install:
35
do-install:
36
	cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} \
36
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} '-not -path \./bin/'
37
		${STAGEDIR}${DATADIR}/{} \;
38
	cd ${WRKSRC} && ${FIND} . -type f -not -path "\./bin/" \
39
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
40
	${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin
37
	${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin
41
	${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
38
	${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
42
	@${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
39
	@${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
(-)devel/maven31/Makefile (-2 / +1 lines)
Lines 34-41 post-extract: Link Here
34
	${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
34
	${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
35
35
36
do-install:
36
do-install:
37
	cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \;
37
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} '-not -path \./bin/'
38
	cd ${WRKSRC} && ${FIND} . -type f -not -path "\./bin/" -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
39
	${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin/
38
	${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin/
40
	${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
39
	${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
41
	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
40
	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
(-)devel/maven33/Makefile (-2 / +1 lines)
Lines 32-39 post-extract: Link Here
32
	${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
32
	${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
33
33
34
do-install:
34
do-install:
35
	cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \;
35
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} '-not -path \./bin/'
36
	cd ${WRKSRC} && ${FIND} . -type f -not -path "\./bin/" -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
37
	${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin/
36
	${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin/
38
	${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
37
	${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
39
	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
38
	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
(-)devel/ocaml-camomile-examples/Makefile (-1 / +1 lines)
Lines 19-24 EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/${PORTNAME} Link Here
19
19
20
do-install:
20
do-install:
21
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
21
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
22
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
22
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
23
23
24
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)devel/ocaml-ounit/Makefile (-2 / +1 lines)
Lines 30-36 post-install-DOCS-on: Link Here
30
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
30
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
31
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
31
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
32
	${INSTALL_DATA} ${WRKSRC}/doc/style.css ${STAGEDIR}${DOCSDIR}
32
	${INSTALL_DATA} ${WRKSRC}/doc/style.css ${STAGEDIR}${DOCSDIR}
33
	${FIND} ${WRKSRC}/doc -type f -name "*.html" -exec \
33
	cd ${WRKSRC}/doc  && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} '-name *\.html'
34
		${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR} \;
35
34
36
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)devel/p5-VCP-autrijus/Makefile (-1 / +1 lines)
Lines 28-33 USES= perl5 Link Here
28
USE_PERL5=	configure
28
USE_PERL5=	configure
29
29
30
post-patch:
30
post-patch:
31
	${FIND} ${WRKSRC} -name "*.orig" -a -exec ${RM} {} \;
31
	${FIND} ${WRKSRC} -name "*.orig" -delete
32
32
33
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)devel/py-funcparserlib/Makefile (-3 / +2 lines)
Lines 24-31 OPTIONS_DEFINE= DOCS Link Here
24
post-install:
24
post-install:
25
	@${RM} ${WRKSRC}/doc/Makefile
25
	@${RM} ${WRKSRC}/doc/Makefile
26
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
26
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
27
	cd ${INSTALL_WRKSRC} \
27
	${INSTALL_DATA} ${INSTALL_WRKSRC}/README ${STAGEDIR}${DOCSDIR}
28
	  && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \
28
	cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}
29
	  && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${DOCSDIR}/\{} \;
30
29
31
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)devel/py-ice/Makefile (-1 / +1 lines)
Lines 34-40 post-install: Link Here
34
	${STRIP_CMD} ${STAGEDIR}${PYSITEDIR}/Ice/*.so.*
34
	${STRIP_CMD} ${STAGEDIR}${PYSITEDIR}/Ice/*.so.*
35
	${ECHO} "Ice" > ${STAGEDIR}${PYSITEDIR}/Ice.pth
35
	${ECHO} "Ice" > ${STAGEDIR}${PYSITEDIR}/Ice.pth
36
	@${FIND} ${STAGEDIR}${PYSITEDIR}/Ice \( -name "*.pyc" -or -name "*.pyo" \) \
36
	@${FIND} ${STAGEDIR}${PYSITEDIR}/Ice \( -name "*.pyc" -or -name "*.pyo" \) \
37
		-exec ${CHMOD} u+w {} \;
37
		-exec ${CHMOD} u+w {} +
38
	@${PYTHON_CMD} -m compileall -d ${PYSITEDIR}/Ice ${STAGEDIR}${PYSITEDIR}/Ice
38
	@${PYTHON_CMD} -m compileall -d ${PYSITEDIR}/Ice ${STAGEDIR}${PYSITEDIR}/Ice
39
	@${PYTHON_CMD} -O -m compileall -d ${PYSITEDIR}/Ice ${STAGEDIR}${PYSITEDIR}/Ice
39
	@${PYTHON_CMD} -O -m compileall -d ${PYSITEDIR}/Ice ${STAGEDIR}${PYSITEDIR}/Ice
40
40
(-)devel/py-json-py/Makefile (-1 / +1 lines)
Lines 28-33 do-build: Link Here
28
do-install:
28
do-install:
29
	${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
29
	${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
30
	@cd ${WRKSRC}; \
30
	@cd ${WRKSRC}; \
31
	${FIND} . \( -name "*.py" -or -name "*.pyc" \) -exec ${INSTALL_SCRIPT} \{\} ${STAGEDIR}${PYTHON_SITELIBDIR} \;
31
	${FIND} . \( -name "*.py" -or -name "*.pyc" \) -exec ${INSTALL_SCRIPT} {} ${STAGEDIR}${PYTHON_SITELIBDIR} +
32
32
33
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)devel/py-pyopencl/Makefile (-1 / +1 lines)
Lines 35-40 do-configure: Link Here
35
35
36
post-install:
36
post-install:
37
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} -name '*.so' \
37
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} -name '*.so' \
38
	    -exec ${STRIP_CMD} {} \;
38
	    -exec ${STRIP_CMD} {} +
39
39
40
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)devel/py-twisted/Makefile (-1 / +1 lines)
Lines 20-26 USES= python:2 tar:bzip2 Link Here
20
USE_PYTHON=	distutils
20
USE_PYTHON=	distutils
21
21
22
post-install:
22
post-install:
23
	${FIND} ${STAGEDIR}${PREFIX}/lib -name "*.c" -and -exec ${RM} {} \;
23
	${FIND} ${STAGEDIR}${PREFIX}/lib -name "*.c" -delete
24
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/python/_sendmsg.so
24
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/python/_sendmsg.so
25
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/test/raiser.so
25
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/test/raiser.so
26
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/runner/portmap.so
26
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/twisted/runner/portmap.so
(-)devel/scalatest/Makefile (-4 / +4 lines)
Lines 29-39 do-install: Link Here
29
	${MKDIR} ${STAGEDIR}${PREFIX}/${SCALA_HOME}/lib
29
	${MKDIR} ${STAGEDIR}${PREFIX}/${SCALA_HOME}/lib
30
	${INSTALL_DATA} ${INSTALL_WRKSRC}/scalatest-${PORTVERSION}.jar ${STAGEDIR}${PREFIX}/${SCALA_HOME}/lib/scalatest.jar
30
	${INSTALL_DATA} ${INSTALL_WRKSRC}/scalatest-${PORTVERSION}.jar ${STAGEDIR}${PREFIX}/${SCALA_HOME}/lib/scalatest.jar
31
	${INSTALL_DATA} ${INSTALL_WRKSRC}/scalatest-${PORTVERSION}-tests.jar ${STAGEDIR}${PREFIX}/${SCALA_HOME}/lib/scalatest-tests.jar
31
	${INSTALL_DATA} ${INSTALL_WRKSRC}/scalatest-${PORTVERSION}-tests.jar ${STAGEDIR}${PREFIX}/${SCALA_HOME}/lib/scalatest-tests.jar
32
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}
32
	cd ${INSTALL_WRKSRC}/src/examples \
33
	cd ${INSTALL_WRKSRC}/src/examples \
33
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/\{} \; \
34
	  && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
34
	  && ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${EXAMPLESDIR}/\{} \;
35
	cd ${INSTALL_WRKSRC} \
35
	cd ${INSTALL_WRKSRC} \
36
	  && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \
36
	  && ${INSTALL_DATA} ${PORTDOCS:Ndoc} ${STAGEDIR}${DOCSDIR} \
37
	  && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${DOCSDIR}/\{} \;
37
	  && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}
38
38
39
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)devel/sfml1/Makefile (-1 / +1 lines)
Lines 40-46 post-extract: Link Here
40
	@${FIND} ${WRKSRC}/samples/bin/ -type f -maxdepth 1 -delete
40
	@${FIND} ${WRKSRC}/samples/bin/ -type f -maxdepth 1 -delete
41
41
42
post-install:
42
post-install:
43
	${FIND} ${STAGEDIR}${PREFIX}/include/SFML -name "*.hpp" -exec ${REINPLACE_CMD} -i '' -e '/#include/ s|SFML|&1|' {} \;
43
	${FIND} ${STAGEDIR}${PREFIX}/include/SFML -name "*.hpp" -exec ${REINPLACE_CMD} -i '' -e '/#include/ s|SFML|&1|' {} +
44
	${MV} ${STAGEDIR}${PREFIX}/include/SFML ${STAGEDIR}${PREFIX}/include/SFML${PKGNAMESUFFIX}
44
	${MV} ${STAGEDIR}${PREFIX}/include/SFML ${STAGEDIR}${PREFIX}/include/SFML${PKGNAMESUFFIX}
45
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
45
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
46
	${MKDIR} ${STAGEDIR}${DOCSDIR}
46
	${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)devel/swig20/Makefile (-8 / +2 lines)
Lines 51-67 post-configure: Link Here
51
post-install:
51
post-install:
52
.if ${PORT_OPTIONS:MEXAMPLES}
52
.if ${PORT_OPTIONS:MEXAMPLES}
53
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
53
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
54
	cd ${WRKSRC}/Examples && ${FIND} . -type d \
54
	cd ${WRKSRC}/Examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}
55
		-exec ${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \;
56
	cd ${WRKSRC}/Examples && ${FIND} . -type f \
57
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/${PORTVERSION}/{} \;
58
.endif
55
.endif
59
.if ${PORT_OPTIONS:MDOCS}
56
.if ${PORT_OPTIONS:MDOCS}
60
	${MKDIR} ${STAGEDIR}${DOCSDIR}/${PORTVERSION}
57
	${MKDIR} ${STAGEDIR}${DOCSDIR}/${PORTVERSION}
61
	cd ${WRKSRC}/Doc && ${FIND} . -type d \
58
	cd ${WRKSRC}/Doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${PORTVERSION}
62
		-exec ${INSTALL} -d ${STAGEDIR}${DOCSDIR}/${PORTVERSION}/{} \;
63
	cd ${WRKSRC}/Doc && ${FIND} . -type f \
64
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/${PORTVERSION}/{} \;
65
.endif
59
.endif
66
60
67
regression-test: build
61
regression-test: build
(-)devel/websvn/Makefile (-1 / +1 lines)
Lines 27-32 do-install: Link Here
27
	${MKDIR} ${STAGEDIR}${PREFIX}/${WEBSVNDIR}
27
	${MKDIR} ${STAGEDIR}${PREFIX}/${WEBSVNDIR}
28
	(cd ${WRKSRC} \
28
	(cd ${WRKSRC} \
29
	    && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/${WEBSVNDIR})
29
	    && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/${WEBSVNDIR})
30
	${FIND} ${STAGEDIR}${PREFIX}/${WEBSVNDIR} -type f -exec ${CHMOD} 644 '{}' +
30
	${FIND} ${STAGEDIR}${PREFIX}/${WEBSVNDIR} -type f -exec ${CHMOD} 644 {} +
31
31
32
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)editors/lazarus/Makefile (-9 / +3 lines)
Lines 149-157 do-install: Link Here
149
.for DIRE in components converter debugger designer doceditor ide images install languages lazarus.app lcl \
149
.for DIRE in components converter debugger designer doceditor ide images install languages lazarus.app lcl \
150
	packager tools units
150
	packager tools units
151
		@${MKDIR} ${STAGEDIR}${DATADIR}/${DIRE}
151
		@${MKDIR} ${STAGEDIR}${DATADIR}/${DIRE}
152
		@cd ${WRKSRC}/${DIRE} && \
152
		@cd ${WRKSRC}/${DIRE} && ${COPYTREE_SHARE} . "${STAGEDIR}${DATADIR}/${DIRE}"
153
			${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/${DIRE}/{}" \; && \
154
				${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/${DIRE}/{}" \;
155
.endfor
153
.endfor
156
	@${CHMOD} +x ${STAGEDIR}${DATADIR}/tools/svn2revisioninc ${STAGEDIR}${DATADIR}/tools/lazres ${STAGEDIR}${DATADIR}/tools/lrstolfm \
154
	@${CHMOD} +x ${STAGEDIR}${DATADIR}/tools/svn2revisioninc ${STAGEDIR}${DATADIR}/tools/lazres ${STAGEDIR}${DATADIR}/tools/lrstolfm \
157
		${STAGEDIR}${DATADIR}/tools/updatepofiles
155
		${STAGEDIR}${DATADIR}/tools/updatepofiles
Lines 160-173 do-install: Link Here
160
	${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
158
	${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
161
.endfor
159
.endfor
162
160
163
	@cd ${WRKDIR}/docs && \
161
	@cd ${WRKDIR}/docs && ${COPYTREE_SHARE} . "${STAGEDIR}${DOCSDIR}"
164
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
165
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
166
	@${LN} -s ${DOCSDIR} ${STAGEDIR}${DATADIR}/docs
162
	@${LN} -s ${DOCSDIR} ${STAGEDIR}${DATADIR}/docs
167
163
168
	@cd ${WRKDIR}/examples && \
164
	@cd ${WRKDIR}/examples && ${COPYTREE_SHARE} . "${STAGEDIR}${EXAMPLESDIR}"
169
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${EXAMPLESDIR}/{}" \; && \
170
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${EXAMPLESDIR}/{}" \;
171
	@${LN} -s ${EXAMPLESDIR} ${STAGEDIR}${DATADIR}/examples
165
	@${LN} -s ${EXAMPLESDIR} ${STAGEDIR}${DATADIR}/examples
172
166
173
	${INSTALL_SCRIPT} ${WRKSRC}/localize.sh ${STAGEDIR}${DATADIR}
167
	${INSTALL_SCRIPT} ${WRKSRC}/localize.sh ${STAGEDIR}${DATADIR}
(-)editors/libreoffice/Makefile (-2 / +2 lines)
Lines 293-300 post-configure: Link Here
293
293
294
post-install:
294
post-install:
295
	@cd ${STAGEDIR}${PREFIX} && \
295
	@cd ${STAGEDIR}${PREFIX} && \
296
	${FIND} -s lib/libreoffice -type d -empty \
296
	${FIND} -s lib/libreoffice -type d -empty | \
297
	    -exec ${ECHO_CMD} "@dir {}" \; >> ${TMPPLIST}
297
	     ${SED} -e 's/^/@dir ' >> ${TMPPLIST}
298
	@cd ${STAGEDIR}${PREFIX} && \
298
	@cd ${STAGEDIR}${PREFIX} && \
299
	${FIND} -s bin etc lib man -not -type d >> ${TMPPLIST}
299
	${FIND} -s bin etc lib man -not -type d >> ${TMPPLIST}
300
.for subdir in application-registry applications icons mime mime-info mimelnk
300
.for subdir in application-registry applications icons mime mime-info mimelnk
(-)editors/libreoffice/Makefile.i18n (-4 / +4 lines)
Lines 41-47 do-install: Link Here
41
41
42
post-install:
42
post-install:
43
	@cd ${WRKSRC}/opt/${PORTNAME}${PORTVERSION:R} && \
43
	@cd ${WRKSRC}/opt/${PORTNAME}${PORTVERSION:R} && \
44
		${FIND} -s * -not -type d \
44
		${FIND} -s * -not -type d | \
45
			-exec ${ECHO_CMD} "lib/${PORTNAME}/{}" \; >> ${TMPPLIST} && \
45
			${SED} -e 's,^,lib/${PORTNAME}/,' >> ${TMPPLIST} && \
46
		${FIND} -d * -type d -empty \
46
		${FIND} -d * -type d -empty | \
47
			-exec ${ECHO_CMD} "@dir lib/${PORTNAME}/{}" \; >> ${TMPPLIST}
47
			${SED} -e 's,^,@dir lib/${PORTNAME}/,' >> ${TMPPLIST}
(-)editors/libreoffice4/Makefile (-1 / +1 lines)
Lines 361-367 do-install: Link Here
361
	@cd ${WRKSRC} && ${MAKE_CMD} ${MAKE_ARGS} distro-pack-install
361
	@cd ${WRKSRC} && ${MAKE_CMD} ${MAKE_ARGS} distro-pack-install
362
	@${RM} ${PLISTD} ${PLISTF}
362
	@${RM} ${PLISTD} ${PLISTF}
363
	@cd ${STAGEDIR}${PREFIX} && ${FIND} -d lib/libreoffice -type d \
363
	@cd ${STAGEDIR}${PREFIX} && ${FIND} -d lib/libreoffice -type d \
364
	    -empty -exec ${ECHO_CMD} "@dir {}" \; >> ${PLISTD}
364
	    -empty | ${SED} -e 's,^,@dir ,' >> ${PLISTD}
365
	@cd ${STAGEDIR}${PREFIX} && ${FIND} -H -s bin etc lib man \
365
	@cd ${STAGEDIR}${PREFIX} && ${FIND} -H -s bin etc lib man \
366
	    \( -type f -o -type l \) -print >> ${PLISTF}
366
	    \( -type f -o -type l \) -print >> ${PLISTF}
367
.for subdir in application-registry applications icons mime mime-info mimelnk
367
.for subdir in application-registry applications icons mime mime-info mimelnk
(-)editors/openoffice-4/Makefile (-1 / +1 lines)
Lines 410-416 do-install: Link Here
410
			${TAR} -s '|./[^/]*/||' -xz -f $$i \
410
			${TAR} -s '|./[^/]*/||' -xz -f $$i \
411
				-C ${STAGEDIR}${PRINSTALLATION_BASEDIR} ; \
411
				-C ${STAGEDIR}${PRINSTALLATION_BASEDIR} ; \
412
		done
412
		done
413
	${FIND} ${STAGEDIR}${PRINSTALLATION_BASEDIR} -type d -exec ${CHMOD} 755 {} \;
413
	${FIND} ${STAGEDIR}${PRINSTALLATION_BASEDIR} -type d -exec ${CHMOD} 755 {} +
414
	${REINPLACE_CMD} \
414
	${REINPLACE_CMD} \
415
		-e '/^UserInstallation/s/=.*/=$$SYSUSERCONFIG\/${AOOUDIR}/' \
415
		-e '/^UserInstallation/s/=.*/=$$SYSUSERCONFIG\/${AOOUDIR}/' \
416
		${STAGEDIR}${OOPATH}/program/bootstraprc
416
		${STAGEDIR}${OOPATH}/program/bootstraprc
(-)editors/openoffice-devel/Makefile (-1 / +1 lines)
Lines 420-426 do-install: Link Here
420
			${TAR} -s '|./[^/]*/||' -xz -f $$i \
420
			${TAR} -s '|./[^/]*/||' -xz -f $$i \
421
				-C ${STAGEDIR}${PRINSTALLATION_BASEDIR} ; \
421
				-C ${STAGEDIR}${PRINSTALLATION_BASEDIR} ; \
422
		done
422
		done
423
	${FIND} ${STAGEDIR}${PRINSTALLATION_BASEDIR} -type d -exec ${CHMOD} 755 {} \;
423
	${FIND} ${STAGEDIR}${PRINSTALLATION_BASEDIR} -type d -exec ${CHMOD} 755 {} +
424
	${REINPLACE_CMD} \
424
	${REINPLACE_CMD} \
425
		-e '/^UserInstallation/s/=.*/=$$SYSUSERCONFIG\/${AOOUDIR}/' \
425
		-e '/^UserInstallation/s/=.*/=$$SYSUSERCONFIG\/${AOOUDIR}/' \
426
		${STAGEDIR}${OOPATH}/program/bootstraprc
426
		${STAGEDIR}${OOPATH}/program/bootstraprc
(-)emulators/bsvc/Makefile (-2 / +2 lines)
Lines 32-39 post-patch: Link Here
32
		${REINPLACE_CMD} -e \
32
		${REINPLACE_CMD} -e \
33
			's/iostream\.h/iostream/; \
33
			's/iostream\.h/iostream/; \
34
			 s/strstream\.h/strstream/; \
34
			 s/strstream\.h/strstream/; \
35
			 s/fstream\.h/fstream/' \{\} \;
35
			 s/fstream\.h/fstream/' {} +
36
	@${FIND} ${WRKSRC} -name Makefile -exec \
36
	@${FIND} ${WRKSRC} -name Makefile -exec \
37
		${REINPLACE_CMD} -e 's/make/${MAKE}/' \{\} \;
37
		${REINPLACE_CMD} -e 's/make/${MAKE}/' {} +
38
38
39
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)ftp/phpwebftp/Makefile (-1 / +1 lines)
Lines 24-30 SHAREOWN= ${WWWOWN} Link Here
24
SHAREGRP=	${WWWGRP}
24
SHAREGRP=	${WWWGRP}
25
25
26
post-patch:
26
post-patch:
27
	@${FIND} -d ${WRKSRC} -name CVS -type d -exec ${RM} -R "{}" \;
27
	@${FIND} -d ${WRKSRC} -name CVS -type d -exec ${RM} -R {} +
28
	@${RM} ${WRKSRC}/img/Thumbs.db
28
	@${RM} ${WRKSRC}/img/Thumbs.db
29
	@${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php.sample
29
	@${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php.sample
30
30
(-)games/bubbros/Makefile (-1 / +1 lines)
Lines 53-59 do-install: Link Here
53
.endfor
53
.endfor
54
	${INSTALL_SCRIPT} ${WRKSRC}/BubBob.py ${STAGEDIR}${DATADIR}
54
	${INSTALL_SCRIPT} ${WRKSRC}/BubBob.py ${STAGEDIR}${DATADIR}
55
	# build different colors
55
	# build different colors
56
	@${FIND} ${STAGEDIR}${DATADIR} -name "*.ppm" -exec ${CHMOD} u+w {} \;
56
	@${FIND} ${STAGEDIR}${DATADIR} -name "*.ppm" -exec ${CHMOD} u+w {} +
57
	@${PYTHON_CMD} ${STAGEDIR}${DATADIR}/bubbob/images/buildcolors.py
57
	@${PYTHON_CMD} ${STAGEDIR}${DATADIR}/bubbob/images/buildcolors.py
58
	${LN} -sf ${DATADIR}/http2/data/bob.png \
58
	${LN} -sf ${DATADIR}/http2/data/bob.png \
59
		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
59
		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
(-)games/cake/Makefile (-1 / +1 lines)
Lines 31-37 post-patch: .SILENT Link Here
31
		-name Makefile \) \
31
		-name Makefile \) \
32
		-exec ${REINPLACE_CMD} -E -e 's/[[:cntrl:]]*$$//' \
32
		-exec ${REINPLACE_CMD} -E -e 's/[[:cntrl:]]*$$//' \
33
		-e 's/#pragma[[:blank:]]+pack[[:blank:]]*\([[:blank:]]*push[[:blank:]]*,[[:blank:]]*1[[:blank:]]*\)/#pragma pack(1)/g' \
33
		-e 's/#pragma[[:blank:]]+pack[[:blank:]]*\([[:blank:]]*push[[:blank:]]*,[[:blank:]]*1[[:blank:]]*\)/#pragma pack(1)/g' \
34
		-e 's/#pragma[[:blank:]]+pack[[:blank:]]*\([[:blank:]]*pop[[:blank:]]*\)/#pragma pack()/g' '{}' \;
34
		-e 's/#pragma[[:blank:]]+pack[[:blank:]]*\([[:blank:]]*pop[[:blank:]]*\)/#pragma pack()/g' {} +
35
	${REINPLACE_CMD} -e 's/jpeg\/JPEGLIB\.H/jpeglib.h/' \
35
	${REINPLACE_CMD} -e 's/jpeg\/JPEGLIB\.H/jpeglib.h/' \
36
		${WRKSRC}/cake/texture.cpp
36
		${WRKSRC}/cake/texture.cpp
37
# Fmod library is not supported on FreeBSD, so no sound :(
37
# Fmod library is not supported on FreeBSD, so no sound :(
(-)games/doom-wolfendoom/Makefile (-3 / +1 lines)
Lines 22-30 DATADIR= ${DMDIR}/${PORTNAME} Link Here
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.pre.mk>
23
23
24
do-install:
24
do-install:
25
	${FIND} ${WRKSRC}/${PORTNAME} ! -type d -exec ${CHMOD} 0644 {} +
26
	${FIND} ${WRKSRC}/${PORTNAME} -type d -exec ${CHMOD} 0755 {} +
27
	@${MKDIR} ${STAGEDIR}${DATADIR}
25
	@${MKDIR} ${STAGEDIR}${DATADIR}
28
	${TAR} -cf - -C ${WRKSRC}/${PORTNAME} . | ${TAR} -xpvf - -C ${STAGEDIR}${DATADIR}
26
	cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
29
27
30
.include <bsd.port.post.mk>
28
.include <bsd.port.post.mk>
(-)games/gigalomania/Makefile (-1 / +1 lines)
Lines 24-30 post-patch: Link Here
24
		-e 's|/usr/X11R6|${LOCALBASE}|' \
24
		-e 's|/usr/X11R6|${LOCALBASE}|' \
25
		${WRKSRC}/Makefile
25
		${WRKSRC}/Makefile
26
	@${FIND} ${WRKSRC} -exec ${GREP} -q "__linux" {} \; \
26
	@${FIND} ${WRKSRC} -exec ${GREP} -q "__linux" {} \; \
27
		-exec ${REINPLACE_CMD} 's|__linux|__${OPSYS}__|' {} \;
27
		-exec ${REINPLACE_CMD} 's|__linux|__${OPSYS}__|' {} +
28
	@${REINPLACE_CMD} 's|/opt/gigalomania/||g' \
28
	@${REINPLACE_CMD} 's|/opt/gigalomania/||g' \
29
		${WRKSRC}/gigalomania.desktop
29
		${WRKSRC}/gigalomania.desktop
30
	@${REINPLACE_CMD} 's|/usr/share|${LOCALBASE}/share|g' \
30
	@${REINPLACE_CMD} 's|/usr/share|${LOCALBASE}/share|g' \
(-)games/glest-data/Makefile (-3 / +1 lines)
Lines 42-50 do-install: Link Here
42
.endfor
42
.endfor
43
43
44
.for DIRE in ${GLESTDATADIRE}
44
.for DIRE in ${GLESTDATADIRE}
45
	@cd ${WRKSRC} && \
45
	@cd ${WRKSRC} && ${COPYTREE_SHARE} ${DIRE} ${STAGEDIR}${DATADIR}
46
		${FIND} ${DIRE} -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
47
			${FIND} ${DIRE} -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
48
.endfor
46
.endfor
49
47
50
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)games/gtklife/Makefile (-2 / +3 lines)
Lines 49-57 post-patch: Link Here
49
49
50
do-install:
50
do-install:
51
	${INSTALL_PROGRAM} ${WRKSRC}/gtklife ${STAGEDIR}${PREFIX}/bin
51
	${INSTALL_PROGRAM} ${WRKSRC}/gtklife ${STAGEDIR}${PREFIX}/bin
52
.for d in ${DATA_SUBDIRS}
52
	cd ${WRKSRC} && \
53
	cd ${WRKSRC} && \
53
	${FIND} ${DATA_SUBDIRS} -type d ! -empty -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
54
		${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}
54
	${FIND} ${DATA_SUBDIRS} ! -type d -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
55
.endfor
55
.for s in ${ICON_SIZES}
56
.for s in ${ICON_SIZES}
56
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
57
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
57
	${INSTALL_DATA} ${WRKSRC}/icon_${s}.png \
58
	${INSTALL_DATA} ${WRKSRC}/icon_${s}.png \
(-)games/jin/Makefile (-4 / +1 lines)
Lines 24-31 JINJAR= ${PORTNAME}.jar Link Here
24
24
25
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
25
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
26
26
27
FIND_DIRS=	. -type d
28
FIND_DATA=	. -type f
29
RM_FILES=	${PORTNAME} README changelog.txt gpl.txt
27
RM_FILES=	${PORTNAME} README changelog.txt gpl.txt
30
28
31
post-extract:
29
post-extract:
Lines 35-42 post-extract: Link Here
35
33
36
do-install:
34
do-install:
37
	@${MKDIR} ${STAGEDIR}${DATADIR}
35
	@${MKDIR} ${STAGEDIR}${DATADIR}
38
	@cd ${WRKSRC} && ${FIND} ${FIND_DIRS} -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} ";"
36
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
39
	@cd ${WRKSRC} && ${FIND} ${FIND_DATA} -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} ";"
40
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
37
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
41
38
42
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)games/linux-etqw-demo-server/Makefile (-13 / +5 lines)
Lines 38-56 do-install: Link Here
38
38
39
	${INSTALL_SCRIPT} ${WRKSRC}/etqwded-demo ${STAGEDIR}${PREFIX}/bin
39
	${INSTALL_SCRIPT} ${WRKSRC}/etqwded-demo ${STAGEDIR}${PREFIX}/bin
40
	${INSTALL_PROGRAM} ${WRKSRC}/data/etqwded.x86 ${STAGEDIR}${ETQWDIR}
40
	${INSTALL_PROGRAM} ${WRKSRC}/data/etqwded.x86 ${STAGEDIR}${ETQWDIR}
41
	@cd ${WRKSRC}/data && \
41
	@${INSTALL_DATA} ${WRKSRC}/data/*.so.* ${STAGEDIR}${ETQWDIR}
42
		${FIND} -E . -type f -iregex ".*\.so\.[0-9]+" \
42
43
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
43
	@cd ${WRKSRC}/data && ${COPYTREE_SHARE} base ${STAGEDIR}${ETQWDIR}
44
44
45
	@${MKDIR} ${STAGEDIR}${ETQWDIR}/base/bots
45
	@cd ${WRKSRC}/data && ${COPYTREE_SHARE} pb ${STAGEDIR}${ETQWDIR}
46
	@cd ${WRKSRC}/data && \
47
		${FIND} base -type f \
48
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
49
50
	@${MKDIR} ${STAGEDIR}${ETQWDIR}/pb/htm
51
	@cd ${WRKSRC}/data && \
52
		${FIND} pb -type f \
53
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
54
46
55
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
47
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
56
.for FILE in EULA.txt README.txt copyrights.txt etqwtv.txt pb/PBEULA.txt
48
.for FILE in EULA.txt README.txt copyrights.txt etqwtv.txt pb/PBEULA.txt
(-)games/linux-etqw-server/Makefile (-13 / +5 lines)
Lines 41-59 do-install: Link Here
41
41
42
	${INSTALL_SCRIPT} ${WRKSRC}/etqwded ${STAGEDIR}${PREFIX}/bin
42
	${INSTALL_SCRIPT} ${WRKSRC}/etqwded ${STAGEDIR}${PREFIX}/bin
43
	${INSTALL_PROGRAM} ${WRKSRC}/data/etqwded.x86 ${STAGEDIR}${ETQWDIR}
43
	${INSTALL_PROGRAM} ${WRKSRC}/data/etqwded.x86 ${STAGEDIR}${ETQWDIR}
44
	@cd ${WRKSRC}/data && \
44
	@${INSTALL_DATA} ${WRKSRC}/data/*.so.* ${STAGEDIR}${ETQWDIR}
45
		${FIND} -E . -type f -iregex ".*\.so\.[0-9]+" \
45
46
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
46
	@cd ${WRKSRC}/data && ${COPYTREE_SHARE} base ${STAGEDIR}${ETQWDIR}
47
47
48
	@${MKDIR} ${STAGEDIR}${ETQWDIR}/base/bots
48
	@cd ${WRKSRC}/data && ${COPYTREE_SHARE} pb ${STAGEDIR}${ETQWDIR}
49
	@cd ${WRKSRC}/data && \
50
		${FIND} base -type f \
51
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
52
53
	@${MKDIR} ${STAGEDIR}${ETQWDIR}/pb/htm
54
	@cd ${WRKSRC}/data && \
55
		${FIND} pb -type f \
56
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${ETQWDIR}/{}" \;
57
49
58
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
50
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
59
.for FILE in EULA.txt README.txt copyrights.txt etqwtv.txt readme_1_5_patch.txt server_readme.txt pb/PBEULA.txt
51
.for FILE in EULA.txt README.txt copyrights.txt etqwtv.txt readme_1_5_patch.txt server_readme.txt pb/PBEULA.txt
(-)games/linux-nerogame/Makefile (-4 / +1 lines)
Lines 30-39 do-install: Link Here
30
	${INSTALL_DATA} ${WRKSRC}/libopenal.so ${STAGEDIR}${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
30
	${INSTALL_DATA} ${WRKSRC}/libopenal.so ${STAGEDIR}${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME}
31
31
32
.for DIRE in common nero
32
.for DIRE in common nero
33
	@${MKDIR} ${STAGEDIR}${PREFIX}/${DATADIR}/${DIRE}
33
	@cd ${WRKSRC} && ${COPYTREE_SHARE} ${DIRE} ${STAGEDIR}${PREFIX}/${DATADIR}
34
	@cd ${WRKSRC}/${DIRE} && \
35
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/${DATADIR}/${DIRE}/{}" \; && \
36
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${DATADIR}/${DIRE}/{}" \;
37
.endfor
34
.endfor
38
	${INSTALL_DATA} ${WRKSRC}/main.cs ${STAGEDIR}${PREFIX}/${DATADIR}
35
	${INSTALL_DATA} ${WRKSRC}/main.cs ${STAGEDIR}${PREFIX}/${DATADIR}
39
36
(-)games/linux-quake4/Makefile (-13 / +6 lines)
Lines 69-99 do-install: Link Here
69
	@${MKDIR} ${STAGEDIR}${PREFIX}/${Q4DIR}/pb/htm
69
	@${MKDIR} ${STAGEDIR}${PREFIX}/${Q4DIR}/pb/htm
70
	@${MKDIR} ${STAGEDIR}${PREFIX}/${Q4DIR}/q4base
70
	@${MKDIR} ${STAGEDIR}${PREFIX}/${Q4DIR}/q4base
71
	@cd ${WRKSRC} && \
71
	@cd ${WRKSRC} && \
72
		${FIND} -E pb -type f -iregex ".*\.(so)" \
72
		${INSTALL_DATA} pb/*.so "${STAGEDIR}${PREFIX}/${Q4DIR}/pb" && \
73
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \; && \
73
		${INSTALL_DATA} pb/htm/*.htm "${STAGEDIR}${PREFIX}/${Q4DIR}/pb/htm"
74
		${FIND} -E pb/htm -type f -iregex ".*\.(htm)" \
75
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \;
76
	# Q4base
74
	# Q4base
77
	 @cd ${WRKSRC} && \
75
	 @cd ${WRKSRC} && ${INSTALL_DATA} q4base/* ${STAGEDIR}${PREFIX}/${Q4DIR}/q4base
78
		${FIND} -E q4base -type f -iregex ".*\.(cfg|scriptcfg|pk4|off)" \
79
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \;
80
76
81
	# All version (except germany) or only germany version
77
	# All version (except germany) or only germany version
82
.if ${PORT_OPTIONS:MGERMANY}
78
.if ${PORT_OPTIONS:MGERMANY}
83
	@cd ${WRKSRC}/germany && \
79
	@cd ${WRKSRC}/germany && \
84
		${FIND} -E q4base -type f -iregex ".*\.(pk4)" \
80
		${INSTALL_DATA} q4base/* ${STAGEDIR}${PREFIX}/${Q4DIR}/q4base
85
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \;
86
.else
81
.else
87
	@cd ${WRKSRC}/us && \
82
	@cd ${WRKSRC}/us && \
88
		${FIND} -E q4base -type f -iregex ".*\.(pk4)" \
83
		${INSTALL_DATA} q4base/* ${STAGEDIR}${PREFIX}/${Q4DIR}/q4base
89
			-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${Q4DIR}/{}" \;
90
.endif
84
.endif
91
85
92
	# Documentation
86
	# Documentation
93
.if ${PORT_OPTIONS:MDOCS}
87
.if ${PORT_OPTIONS:MDOCS}
94
	@cd ${WRKSRC}/Docs && \
88
	@cd ${WRKSRC}/Docs && \
95
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
89
		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
96
		${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
97
	${INSTALL_DATA} ${WRKSRC}/License.txt ${STAGEDIR}${DOCSDIR}/LICENSE && \
90
	${INSTALL_DATA} ${WRKSRC}/License.txt ${STAGEDIR}${DOCSDIR}/LICENSE && \
98
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README && \
91
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README && \
99
	${INSTALL_DATA} ${WRKSRC}/pb/PBEULA.txt ${STAGEDIR}${DOCSDIR}/PBEULA
92
	${INSTALL_DATA} ${WRKSRC}/pb/PBEULA.txt ${STAGEDIR}${DOCSDIR}/PBEULA
(-)games/linux-ssamtfe/Makefile (-10 / +3 lines)
Lines 77-98 do-install: Link Here
77
.endfor
77
.endfor
78
.for dir in Controls Data Levels Demos Mods Scripts VirtualTrees
78
.for dir in Controls Data Levels Demos Mods Scripts VirtualTrees
79
	@cd ${CDROM_MOUNT}/Install && \
79
	@cd ${CDROM_MOUNT}/Install && \
80
		${FIND} ${dir} -type d -exec \
80
		${COPYTREE_SHARE} ${dir} "${STAGEDIR}${DATADIR}"
81
			${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
82
		${FIND} ${dir} -type f -exec \
83
			${INSTALL_DATA} "${CDROM_MOUNT}/Install/{}" "${STAGEDIR}${DATADIR}/{}" \;
84
.endfor
81
.endfor
85
.for dir in Controls Data Help Players SaveGame Scripts Temp
82
.for dir in Controls Data Help Players SaveGame Scripts Temp
86
	@cd ${WRKSRC}/Data && \
83
	@cd ${WRKSRC}/Data && \
87
		${FIND} ${dir} -type d -exec \
84
		${COPYTREE_SHARE} ${dir} "${STAGEDIR}${DATADIR}"
88
			${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
89
		${FIND} ${dir} -type f -exec \
90
			${INSTALL_DATA} "${WRKSRC}/Data/{}" "${STAGEDIR}${DATADIR}/{}" \;
91
.endfor
85
.endfor
92
	@${MKDIR} ${STAGEDIR}${DATADIR}/Bin
86
	@${MKDIR} ${STAGEDIR}${DATADIR}/Bin
93
	@cd ${WRKSRC}/Data && \
87
	@cd ${WRKSRC}/Data && \
94
		${FIND} Bin -type f -exec \
88
		${COPYTREE_BIN} Bin "${STAGEDIR}${DATADIR}"
95
			${INSTALL_PROGRAM} "${WRKSRC}/Data/{}" "${STAGEDIR}${DATADIR}/{}" \;
96
	${BRANDELF} -t Linux ${STAGEDIR}${DATADIR}/Bin/ssam_*
89
	${BRANDELF} -t Linux ${STAGEDIR}${DATADIR}/Bin/ssam_*
97
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
90
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
98
.if ${PORT_OPTIONS:MVORBIS}
91
.if ${PORT_OPTIONS:MVORBIS}
(-)games/linux-ssamtse/Makefile (-10 / +3 lines)
Lines 65-74 do-install: Link Here
65
	${INSTALL_DATA} "${CDROM_MOUNT}/Install/Mods/SecondEncounterTbn.tex" ${STAGEDIR}${DATADIR}/Mods/SecondEncounterTbn.tex
65
	${INSTALL_DATA} "${CDROM_MOUNT}/Install/Mods/SecondEncounterTbn.tex" ${STAGEDIR}${DATADIR}/Mods/SecondEncounterTbn.tex
66
.for dir in Controls Data Scripts VirtualTrees Worlds Demos
66
.for dir in Controls Data Scripts VirtualTrees Worlds Demos
67
	@cd ${CDROM_MOUNT}/Install && \
67
	@cd ${CDROM_MOUNT}/Install && \
68
		${FIND} ${dir} -type d -exec \
68
		${COPYTREE_SHARE} ${dir} "${STAGEDIR}${DATADIR}"
69
			${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
70
		${FIND} ${dir} -type f -exec \
71
			${INSTALL_DATA} "${CDROM_MOUNT}/Install/{}" "${STAGEDIR}${DATADIR}/{}" \;
72
.endfor
69
.endfor
73
	@${MKDIR} ${STAGEDIR}${DATADIR}/Help
70
	@${MKDIR} ${STAGEDIR}${DATADIR}/Help
74
.for i in ${PORTDOCS:NREADME.liflg}
71
.for i in ${PORTDOCS:NREADME.liflg}
Lines 76-90 do-install: Link Here
76
.endfor
73
.endfor
77
.for dir in Data/Var Levels
74
.for dir in Data/Var Levels
78
	@cd ${WRKSRC} && \
75
	@cd ${WRKSRC} && \
79
		${FIND} ${dir} -type d -exec \
76
		${COPYTREE_SHARE} ${dir} "${STAGEDIR}${DATADIR}"
80
			${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
81
		${FIND} ${dir} -type f -exec \
82
			${INSTALL_DATA} "${WRKSRC}/{}" "${STAGEDIR}${DATADIR}/{}" \;
83
.endfor
77
.endfor
84
	@${MKDIR} ${STAGEDIR}${DATADIR}/Bin
78
	@${MKDIR} ${STAGEDIR}${DATADIR}/Bin
85
	@cd ${WRKSRC}/Data && \
79
	@cd ${WRKSRC}/Data && \
86
		${FIND} Bin -type f -exec \
80
		${COPYTREE_BIN} Bin "${STAGEDIR}${DATADIR}"
87
			${INSTALL_PROGRAM} "${WRKSRC}/Data/{}" "${STAGEDIR}${DATADIR}/{}" \;
88
	${BRANDELF} -t Linux ${STAGEDIR}${DATADIR}/Bin/ssam_*
81
	${BRANDELF} -t Linux ${STAGEDIR}${DATADIR}/Bin/ssam_*
89
	${INSTALL_DATA} ${WRKSRC}/ModExt.txt ${STAGEDIR}${DATADIR}
82
	${INSTALL_DATA} ${WRKSRC}/ModExt.txt ${STAGEDIR}${DATADIR}
90
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
83
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
(-)games/linux-ut2003-demo/Makefile (-5 / +3 lines)
Lines 56-66 pre-install: Link Here
56
do-install:
56
do-install:
57
	${INSTALL_SCRIPT} ${WRKDIR}/ut2003-demo ${STAGEDIR}${PREFIX}/bin
57
	${INSTALL_SCRIPT} ${WRKDIR}/ut2003-demo ${STAGEDIR}${PREFIX}/bin
58
58
59
	cd ${WRKSRC} && \
59
.for d in ${LIBDIRS}
60
	${FIND} ${LIBDIRS} -type d ! -empty -exec \
60
	cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} "${STAGEDIR}${UTDIR}"
61
		${MKDIR} "${STAGEDIR}${UTDIR}/{}" \; && \
61
.endfor
62
	${FIND} ${LIBDIRS} -type f -exec \
63
		${INSTALL_DATA} "{}" "${STAGEDIR}${UTDIR}/{}" \;
64
	${CHMOD} ${BINMODE} ${STAGEDIR}${UTDIR}/Benchmark/*.sh ${STAGEDIR}${UTDIR}/System/*-bin
62
	${CHMOD} ${BINMODE} ${STAGEDIR}${UTDIR}/Benchmark/*.sh ${STAGEDIR}${UTDIR}/System/*-bin
65
	${CHMOD} ${LIBMODE} ${STAGEDIR}${UTDIR}/System/*.so*
63
	${CHMOD} ${LIBMODE} ${STAGEDIR}${UTDIR}/System/*.so*
66
	@${MKDIR} ${STAGEDIR}${DATADIR}
64
	@${MKDIR} ${STAGEDIR}${DATADIR}
(-)games/linux-virtual-jay-peak/Makefile (-5 / +1 lines)
Lines 29-41 do-install: Link Here
29
29
30
	${MKDIR} ${STAGEDIR}${DATADIR}
30
	${MKDIR} ${STAGEDIR}${DATADIR}
31
.for d in Recordings data
31
.for d in Recordings data
32
	${CP} -R ${WRKSRC}/${d} ${STAGEDIR}${DATADIR}
32
	cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}
33
.endfor
33
.endfor
34
34
35
	-${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DATADIR}/*
36
	${FIND} ${STAGEDIR}${DATADIR}/* -type f -exec ${CHMOD} ${SHAREMODE} {} \;
37
	${FIND} ${STAGEDIR}${DATADIR}/* -type d -exec ${CHMOD} ${BINMODE} {} \;
38
39
.if ${PORT_OPTIONS:MDOCS}
35
.if ${PORT_OPTIONS:MDOCS}
40
	${MKDIR} ${STAGEDIR}${DOCSDIR}
36
	${MKDIR} ${STAGEDIR}${DOCSDIR}
41
.for f in readme-jay_peak.txt readme-linux.txt
37
.for f in readme-jay_peak.txt readme-linux.txt
(-)games/pongix/Makefile (-4 / +2 lines)
Lines 25-34 do-install: Link Here
25
	${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR}
25
	${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR}
26
	cd ${WRKSRC}/src && \
26
	cd ${WRKSRC}/src && \
27
		${INSTALL_PROGRAM} pongix ${STAGEDIR}${PREFIX}/bin
27
		${INSTALL_PROGRAM} pongix ${STAGEDIR}${PREFIX}/bin
28
	cd ${WRKSRC}/data && ${FIND} * -type d \
28
	cd ${WRKSRC}/data && ${COPYTREE_SHARE} .  ${STAGEDIR}${DATADIR} \
29
		-exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
29
		'-iregex .*\.(jpg|bmp)'
30
		${FIND} -E * -type f -iregex ".*\.(jpg|bmp)" \
31
		-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
32
	cd ${WRKSRC} && ${INSTALL_DATA} \
30
	cd ${WRKSRC} && ${INSTALL_DATA} \
33
		AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR}
31
		AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR}
34
32
(-)games/sampsvr/Makefile (-6 / +2 lines)
Lines 32-44 do-install: Link Here
32
.endfor
32
.endfor
33
	@${MKDIR} ${STAGEDIR}${DATADIR}
33
	@${MKDIR} ${STAGEDIR}${DATADIR}
34
	cd ${WRKSRC} && \
34
	cd ${WRKSRC} && \
35
	${FIND} . -type d ! -empty -exec \
35
	${COPYTREE_SHARE} "filterscripts gamemodes include npcmodes scriptfiles" "${STAGEDIR}${DATADIR}"
36
		${MKDIR} "${STAGEDIR}${DATADIR}/{}" \;
37
.for i in filterscripts gamemodes include npcmodes scriptfiles
36
.for i in filterscripts gamemodes include npcmodes scriptfiles
38
	cd ${WRKSRC} && \
37
	${LN} -sf ../../${DATADIR_REL}/${i} ${STAGEDIR}${SAMPDIR}/${i}
39
	${FIND} ${i} -type f -exec \
40
		${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
41
	${LN} -sf ${DATADIR}/${i} ${STAGEDIR}${SAMPDIR}/${i}
42
.endfor
38
.endfor
43
	${INSTALL_DATA} ${WRKSRC}/server.cfg \
39
	${INSTALL_DATA} ${WRKSRC}/server.cfg \
44
		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample
40
		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample
(-)games/typespeed/Makefile (-1 / +1 lines)
Lines 29-35 NLS_CONFIGURE_ENABLE= nls Link Here
29
post-patch:
29
post-patch:
30
	@${FIND} ${WRKSRC} -name "Makefile.in" -exec \
30
	@${FIND} ${WRKSRC} -name "Makefile.in" -exec \
31
		${REINPLACE_CMD} -e 's|^\(CC =\).*|\1 @CC@|; \
31
		${REINPLACE_CMD} -e 's|^\(CC =\).*|\1 @CC@|; \
32
			/chmod/ d; /chgrp/ d' {} \;
32
			/chmod/ d; /chgrp/ d' {} +
33
	@${REINPLACE_CMD} -e \
33
	@${REINPLACE_CMD} -e \
34
		's|\(/etc\)|${PREFIX}\1|' ${WRKSRC}/src/pathnames.h
34
		's|\(/etc\)|${PREFIX}\1|' ${WRKSRC}/src/pathnames.h
35
35
(-)games/ufoai/Makefile (-9 / +5 lines)
Lines 127-143 do-install: Link Here
127
	${INSTALL_DATA} ${WRKSRC}/radiant/${FILE} ${STAGEDIR}${UFO_DIR}/radiant
127
	${INSTALL_DATA} ${WRKSRC}/radiant/${FILE} ${STAGEDIR}${UFO_DIR}/radiant
128
.endfor
128
.endfor
129
129
130
.for DIRE in ${RADIANT_DIRS}
130
	${MKDIR} ${STAGEDIR}${UFO_DIR}/radiant
131
	${MKDIR} ${STAGEDIR}${UFO_DIR}/radiant/${DIRE}
131
	cd ${WRKSRC}/radiant && \
132
	cd ${WRKSRC}/radiant/${DIRE} && \
132
		${COPYTREE_SHARE} "${RADIANT_DIRS}" ${STAGEDIR}${UFO_DIR}/radiant
133
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${UFO_DIR}/radiant/${DIRE}/{}" \; && \
134
		${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${UFO_DIR}/radiant/${DIRE}/{}" \;
135
.endfor
136
.endif
133
.endif
137
134
138
	cd ${WRKSRC}/base/i18n && \
135
	cd ${WRKSRC}/base && \
139
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${PREFIX}/${DATADIR}/base/i18n/{}" \; && \
136
		${COPYTREE_SHARE} i18n ${STAGEDIR}${PREFIX}/${DATADIR}/base
140
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/${DATADIR}/base/i18n/{}" \;
141
	${LN} -s ${PREFIX}/${DATADIR}/base ${STAGEDIR}${UFO_DIR}/base
137
	${LN} -s ${PREFIX}/${DATADIR}/base ${STAGEDIR}${UFO_DIR}/base
142
138
143
.include <bsd.port.post.mk>
139
.include <bsd.port.post.mk>
(-)german/wordpress/Makefile (-1 / +1 lines)
Lines 50-56 pre-install: Link Here
50
do-install:
50
do-install:
51
	${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
51
	${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
52
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
52
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
53
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
53
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w {} +
54
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
54
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
55
	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
55
	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
56
56
(-)graphics/geoapi/Makefile (-3 / +1 lines)
Lines 28-35 do-install: Link Here
28
28
29
do-install-DOCS-on:
29
do-install-DOCS-on:
30
	${MKDIR} ${STAGEDIR}${DOCSDIR}
30
	${MKDIR} ${STAGEDIR}${DOCSDIR}
31
	cd ${WRKSRC}/javadoc \
31
	cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
32
		&& ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/\{} \; \
33
		&& ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${STAGEDIR}${DOCSDIR}/\{} \;
34
32
35
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)graphics/geomorph/Makefile (-1 / +1 lines)
Lines 30-36 NLS_USES= gettext Link Here
30
NLS_CONFIGURE_ENABLE=	nls
30
NLS_CONFIGURE_ENABLE=	nls
31
31
32
post-patch:
32
post-patch:
33
	@${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -i '' -e 's|/usr/local/share/geomorph|${DATADIR}|' {} \;
33
	@${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -i '' -e 's|/usr/local/share/geomorph|${DATADIR}|' {} +
34
	@${REINPLACE_CMD} -e 's|\$$HOME/geomorph|\$$HOME/.geomorph|' \
34
	@${REINPLACE_CMD} -e 's|\$$HOME/geomorph|\$$HOME/.geomorph|' \
35
		${WRKSRC}/install-step* ${WRKSRC}/install-user ${WRKSRC}/update-rc
35
		${WRKSRC}/install-step* ${WRKSRC}/install-user ${WRKSRC}/update-rc
36
	@${REINPLACE_CMD} -e '/DEF_DIR_NAME/ s|geomorph|.geomorph|' \
36
	@${REINPLACE_CMD} -e '/DEF_DIR_NAME/ s|geomorph|.geomorph|' \
(-)graphics/gimp-refocus-plugin/Makefile (-1 / +1 lines)
Lines 37-43 PLIST_FILES= ${GIMP_PLUGIN_DIR}/${PORTNAME} Link Here
37
37
38
post-patch:
38
post-patch:
39
	@${FIND} ${WRKSRC} -name Makefile.am \
39
	@${FIND} ${WRKSRC} -name Makefile.am \
40
		-exec ${REINPLACE_CMD} -e "s|; make|; ${MAKE_CMD}|" {} \;
40
		-exec ${REINPLACE_CMD} -e "s|; make|; ${MAKE_CMD}|" {} +
41
	@${REINPLACE_CMD} -e "s|%%WRKSRC%%|${WRKSRC}|" \
41
	@${REINPLACE_CMD} -e "s|%%WRKSRC%%|${WRKSRC}|" \
42
		${WRKSRC}/configure.in
42
		${WRKSRC}/configure.in
43
43
(-)graphics/gsculpt/Makefile (-1 / +1 lines)
Lines 68-74 do-install: Link Here
68
	@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
68
	@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
69
		-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
69
		-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
70
	@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Britefury \
70
	@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Britefury \
71
		-name "*.so" -exec ${STRIP_CMD} {} \;
71
		-name "*.so" -exec ${STRIP_CMD} {} +
72
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gSculpt/*.so
72
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gSculpt/*.so
73
73
74
.include <bsd.port.post.mk>
74
.include <bsd.port.post.mk>
(-)graphics/opencv2/Makefile (-1 / +1 lines)
Lines 175-181 post-patch: Link Here
175
	@${REINPLACE_CMD} -e 's|share/OpenCV/doc|${DOCSDIR_REL}|g' \
175
	@${REINPLACE_CMD} -e 's|share/OpenCV/doc|${DOCSDIR_REL}|g' \
176
		-e 's|share/OpenCV/samples|${EXAMPLESDIR_REL}|g' \
176
		-e 's|share/OpenCV/samples|${EXAMPLESDIR_REL}|g' \
177
		${WRKSRC}/CMakeLists.txt
177
		${WRKSRC}/CMakeLists.txt
178
	@${FIND} ${WRKSRC} -name '*.orig' -exec ${RM} {} \;
178
	@${FIND} ${WRKSRC} -name '*.orig' -delete
179
.if defined(OCV_CORE)
179
.if defined(OCV_CORE)
180
	@${REINPLACE_CMD} -e 's|opencv.pc|opencv-core.pc|g' \
180
	@${REINPLACE_CMD} -e 's|opencv.pc|opencv-core.pc|g' \
181
		${WRKSRC}/cmake/OpenCVGenPkgconfig.cmake
181
		${WRKSRC}/cmake/OpenCVGenPkgconfig.cmake
(-)graphics/p5-Imager/Makefile (-1 / +1 lines)
Lines 30-35 CONFIGURE_ENV= IM_CFLAGS="${CFLAGS}" \ Link Here
30
30
31
post-install:
31
post-install:
32
	@${FIND} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Imager \
32
	@${FIND} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Imager \
33
		-name "*.so" -exec ${STRIP_CMD} {} \;
33
		-name "*.so" -exec ${STRIP_CMD} {} +
34
34
35
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)graphics/processing/Makefile (-1 / +1 lines)
Lines 30-36 post-extract: Link Here
30
	${RM} -r ${WRKSRC}/java
30
	${RM} -r ${WRKSRC}/java
31
	${MV} ${WRKSRC}/processing ${WRKSRC}/start-processing
31
	${MV} ${WRKSRC}/processing ${WRKSRC}/start-processing
32
	${LN} -s ${JAVA_HOME} ${WRKSRC}/java
32
	${LN} -s ${JAVA_HOME} ${WRKSRC}/java
33
	${FIND} ${WRKSRC}/modes/java/reference/ -exec ${CHMOD} 555 {} \;
33
	${FIND} ${WRKSRC}/modes/java/reference/ -exec ${CHMOD} 555 {} +
34
34
35
do-install:
35
do-install:
36
	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/processing
36
	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/processing
(-)graphics/tiled/Makefile (-1 / +1 lines)
Lines 32-38 PYTHON_USES= pkgconfig python:2.7 Link Here
32
PYTHON_QMAKE_OFF=	DISABLE_PYTHON_PLUGIN=yes
32
PYTHON_QMAKE_OFF=	DISABLE_PYTHON_PLUGIN=yes
33
33
34
post-patch:
34
post-patch:
35
	@${FIND} ${WRKSRC} -name "*.pro" -exec ${REINPLACE_CMD} -e 's|share/man|man|' {} \;
35
	@${FIND} ${WRKSRC} -name "*.pro" -exec ${REINPLACE_CMD} -e 's|share/man|man|' {} +
36
36
37
post-install-DOCS-on:
37
post-install-DOCS-on:
38
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
38
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)irc/eggdrop-devel/Makefile (-2 / +2 lines)
Lines 79-86 do-install: Link Here
79
	@${MKDIR} ${STAGEDIR}${DATADIR}/language
79
	@${MKDIR} ${STAGEDIR}${DATADIR}/language
80
	${INSTALL_DATA} ${WRKSRC}/language/core.*.lang ${STAGEDIR}${DATADIR}/language
80
	${INSTALL_DATA} ${WRKSRC}/language/core.*.lang ${STAGEDIR}${DATADIR}/language
81
	@cd ${WRKSRC}/src/mod \
81
	@cd ${WRKSRC}/src/mod \
82
		&& ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \
82
		&& ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} {} \
83
			${STAGEDIR}${DATADIR}/language ";"
83
			${STAGEDIR}${DATADIR}/language +
84
	@${MKDIR} ${STAGEDIR}${DATADIR}/scripts
84
	@${MKDIR} ${STAGEDIR}${DATADIR}/scripts
85
.for f in CONTENTS action.fix.tcl autobotchk alltools.tcl botchk \
85
.for f in CONTENTS action.fix.tcl autobotchk alltools.tcl botchk \
86
	cmd_resolve.tcl compat.tcl dccwhois.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \
86
	cmd_resolve.tcl compat.tcl dccwhois.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \
(-)irc/eggdrop/Makefile (-2 / +2 lines)
Lines 72-79 do-install: Link Here
72
	@${MKDIR} ${STAGEDIR}${DATADIR}/language
72
	@${MKDIR} ${STAGEDIR}${DATADIR}/language
73
	${INSTALL_DATA} ${WRKSRC}/language/core.*.lang ${STAGEDIR}${DATADIR}/language
73
	${INSTALL_DATA} ${WRKSRC}/language/core.*.lang ${STAGEDIR}${DATADIR}/language
74
	@cd ${WRKSRC}/src/mod \
74
	@cd ${WRKSRC}/src/mod \
75
		&& ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \
75
		&& ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} {} \
76
			${STAGEDIR}${DATADIR}/language ";"
76
			${STAGEDIR}${DATADIR}/language +
77
	@${MKDIR} ${STAGEDIR}${DATADIR}/scripts
77
	@${MKDIR} ${STAGEDIR}${DATADIR}/scripts
78
.for f in CONTENTS action.fix.tcl autobotchk alltools.tcl botchk \
78
.for f in CONTENTS action.fix.tcl autobotchk alltools.tcl botchk \
79
	cmd_resolve.tcl compat.tcl dccwhois.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \
79
	cmd_resolve.tcl compat.tcl dccwhois.tcl getops.tcl klined.tcl notes2.tcl ques5.tcl \
(-)irc/thales/Makefile (-1 / +1 lines)
Lines 55-61 CONFIGURE_ARGS:= --with-ircd=${_IRCD} \ Link Here
55
MODES_CONFIGURE_OFF=	--enable-no-modes
55
MODES_CONFIGURE_OFF=	--enable-no-modes
56
56
57
post-patch: .SILENT
57
post-patch: .SILENT
58
	${FIND} -d ${WRKSRC} -type d -name CVS -exec ${RM} -r {} \;
58
	${FIND} -d ${WRKSRC} -type d -name CVS -exec ${RM} -r {} +
59
	${REINPLACE_CMD} -e 's,thales.conf,${PREFIX}/etc/&,' \
59
	${REINPLACE_CMD} -e 's,thales.conf,${PREFIX}/etc/&,' \
60
		${WRKSRC}/src/conf.h
60
		${WRKSRC}/src/conf.h
61
61
(-)japanese/mozc-server/Makefile (-1 / +1 lines)
Lines 100-106 post-patch: Link Here
100
	${REINPLACE_CMD} 's,-liconv,${ICONV_LIB},g' \
100
	${REINPLACE_CMD} 's,-liconv,${ICONV_LIB},g' \
101
	    ${BUILD_WRKSRC}/gui/qt_libraries.gypi
101
	    ${BUILD_WRKSRC}/gui/qt_libraries.gypi
102
	${FIND} ${BUILD_WRKSRC} \( -name '*.gyp' -o -name '*.gypi' \) -exec \
102
	${FIND} ${BUILD_WRKSRC} \( -name '*.gyp' -o -name '*.gypi' \) -exec \
103
	    ${REINPLACE_CMD} "s,'python','${PYTHON_CMD}',g" {} \;
103
	    ${REINPLACE_CMD} "s,'python','${PYTHON_CMD}',g" {} +
104
.if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc"
104
.if ${BUILD_MOZC_LIST:Mfcitx_mozc} == "fcitx_mozc"
105
	${REINPLACE_CMD} 's,/po/mo},%po}mo,g' \
105
	${REINPLACE_CMD} 's,/po/mo},%po}mo,g' \
106
	    ${BUILD_WRKSRC}/unix/fcitx/gen_fcitx_mozc_i18n.sh
106
	    ${BUILD_WRKSRC}/unix/fcitx/gen_fcitx_mozc_i18n.sh
(-)japanese/wordpress/Makefile (-1 / +1 lines)
Lines 50-56 pre-install: Link Here
50
do-install:
50
do-install:
51
	${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
51
	${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
52
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
52
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
53
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
53
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w {} +
54
54
55
do-install-DOCS-on:
55
do-install-DOCS-on:
56
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
56
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
(-)japanese/xpdf/Makefile (-1 / +1 lines)
Lines 38-43 do-install: Link Here
38
	${MKDIR} ${STAGEDIR}${DATADIR}/japanese/CMap
38
	${MKDIR} ${STAGEDIR}${DATADIR}/japanese/CMap
39
	cd ${STAGEDIR}${DATADIR}/japanese/CMap && \
39
	cd ${STAGEDIR}${DATADIR}/japanese/CMap && \
40
	    ${FIND} ${ADOBECMAPDIR}/aj16/CMap ${ADOBECMAPDIR}/aj20/CMap \
40
	    ${FIND} ${ADOBECMAPDIR}/aj16/CMap ${ADOBECMAPDIR}/aj20/CMap \
41
		-type f -exec ${LN} -s -f {} . \;
41
		-type f -exec ${LN} -s -f {} . +
42
42
43
.include <bsd.port.mk>
43
.include <bsd.port.mk>
(-)java/bootstrap-openjdk/Makefile.update (-1 / +1 lines)
Lines 81-87 all: Link Here
81
	@${CP} -p "${FT2_IMAGEDIR}/lib/libfreetype.so.6" \
81
	@${CP} -p "${FT2_IMAGEDIR}/lib/libfreetype.so.6" \
82
	    "${JDK_IMAGEDIR}/jre/lib/${ARCH}"
82
	    "${JDK_IMAGEDIR}/jre/lib/${ARCH}"
83
	@${FIND} "${JDK_IMAGEDIR}" -type f \
83
	@${FIND} "${JDK_IMAGEDIR}" -type f \
84
	    -exec ${STRIP_CMD} -s {} \; 2> /dev/null
84
	    -exec ${STRIP_CMD} -s {} + 2> /dev/null
85
.endif
85
.endif
86
	@cd "${JDK_IMAGEDIR}" && \
86
	@cd "${JDK_IMAGEDIR}" && \
87
	${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} | \
87
	${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} | \
(-)java/jakarta-commons-beanutils/Makefile (-3 / +1 lines)
Lines 43-51 PORTDOCS= ${APIDOCS} ${OTHERDOCS} Link Here
43
do-install:
43
do-install:
44
	${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVALIBDIR}/${JARFILE}
44
	${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVALIBDIR}/${JARFILE}
45
.if ${PORT_OPTIONS:MDOCS}
45
.if ${PORT_OPTIONS:MDOCS}
46
	cd ${WRKSRC}/dist/docs \
46
	cd ${WRKSRC}/dist/docs && ${COPYTREE_SHARE} ${APIDOCS} ${STAGEDIR}${DOCSDIR}
47
	  && ${FIND} ${APIDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
48
	  && ${FIND} ${APIDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
49
	${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
47
	${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
50
.endif
48
.endif
51
49
(-)java/jakarta-commons-discovery/Makefile (-2 / +1 lines)
Lines 24-30 PLIST_FILES+= %%JAVAJARDIR%%/${JARFILE} Link Here
24
24
25
do-install:
25
do-install:
26
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${JARFILE}
26
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${JARFILE}
27
	cd ${WRKSRC}/apidocs && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
27
	cd ${WRKSRC}/apidocs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
28
	cd ${WRKSRC}/apidocs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
29
28
30
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)java/jakarta-struts/Makefile (-2 / +1 lines)
Lines 25-31 DEPRECATED= Port is unmaintained and has known security vulnerabilites Link Here
25
EXPIRATION_DATE=2016-12-01
25
EXPIRATION_DATE=2016-12-01
26
26
27
do-install:
27
do-install:
28
	cd ${WRKSRC} && ${FIND} . -type d -exec ${INSTALL} -d ${STAGEDIR}${PREFIX}/${TDIR}/'{}' \; && \
28
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${TDIR}
29
	${FIND} . -type f -exec ${INSTALL_DATA} '{}' ${STAGEDIR}${PREFIX}/${TDIR}/'{}' \;
30
29
31
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)java/jdbcpool/Makefile (-6 / +2 lines)
Lines 24-34 post-extract: Link Here
24
24
25
do-install:
25
do-install:
26
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
26
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
27
	cd ${WRKSRC}/examples \
27
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
28
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \; \
28
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
29
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;
30
	cd ${WRKSRC} \
31
	  && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
32
	  && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
33
29
34
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)java/jgrapht/Makefile (-2 / +1 lines)
Lines 53-60 do-install: Link Here
53
	@${ECHO_MSG} " [DONE]"
53
	@${ECHO_MSG} " [DONE]"
54
.if ${PORT_OPTIONS:MDOCS}
54
.if ${PORT_OPTIONS:MDOCS}
55
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
55
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
56
	@cd ${WRKSRC}/javadoc && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
56
	@cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
57
	@cd ${WRKSRC}/javadoc && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
58
	@${ECHO_MSG} " [DONE]"
57
	@${ECHO_MSG} " [DONE]"
59
.endif
58
.endif
60
59
(-)java/openjdk6/Makefile (-1 / +1 lines)
Lines 225-231 post-extract: Link Here
225
	@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|" ${FILESDIR}/Makefile.test.in > \
225
	@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|" ${FILESDIR}/Makefile.test.in > \
226
	    ${WRKSRC}/jdk/test/Makefile
226
	    ${WRKSRC}/jdk/test/Makefile
227
	@${FIND} ${WRKSRC}/jdk/test -type f -name \*.sh -exec ${SED} -i "" \
227
	@${FIND} ${WRKSRC}/jdk/test -type f -name \*.sh -exec ${SED} -i "" \
228
	    -e s/Linux/FreeBSD/g {} \;
228
	    -e s/Linux/FreeBSD/g {} +
229
229
230
post-patch:
230
post-patch:
231
	@${REINPLACE_CMD} -e "s|%%CXX_LDFLAGS%%|${CXX_LDFLAGS}|" \
231
	@${REINPLACE_CMD} -e "s|%%CXX_LDFLAGS%%|${CXX_LDFLAGS}|" \
(-)java/openjdk8/Makefile (-2 / +2 lines)
Lines 426-439 do-install: Link Here
426
.if !defined(BUILD_JRE)
426
.if !defined(BUILD_JRE)
427
	@cd ${JDK_IMAGEDIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${INSTALLDIR}
427
	@cd ${JDK_IMAGEDIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${INSTALLDIR}
428
	@cd ${STAGEDIR}${INSTALLDIR} && \
428
	@cd ${STAGEDIR}${INSTALLDIR} && \
429
	${FIND} bin jre/bin -type f -exec ${CHMOD} ${BINMODE} {} \; && \
429
	${FIND} bin jre/bin -type f -exec ${CHMOD} ${BINMODE} {} + && \
430
	${CHMOD} ${BINMODE} jre/${JDK_JVMDIR}/jexec \
430
	${CHMOD} ${BINMODE} jre/${JDK_JVMDIR}/jexec \
431
	    jre/${JDK_JVMDIR}/jspawnhelper ${JDK_JVMDIR}/jexec
431
	    jre/${JDK_JVMDIR}/jspawnhelper ${JDK_JVMDIR}/jexec
432
	@${ECHO} "@dir ${INSTALLDIR}/jre/lib/applet" >> ${TMPPLIST}
432
	@${ECHO} "@dir ${INSTALLDIR}/jre/lib/applet" >> ${TMPPLIST}
433
.else
433
.else
434
	@cd ${JRE_IMAGEDIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${INSTALLDIR}
434
	@cd ${JRE_IMAGEDIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${INSTALLDIR}
435
	@cd ${STAGEDIR}${INSTALLDIR} && \
435
	@cd ${STAGEDIR}${INSTALLDIR} && \
436
	${FIND} bin -type f -exec ${CHMOD} ${BINMODE} {} \; && \
436
	${FIND} bin -type f -exec ${CHMOD} ${BINMODE} {} + && \
437
	${CHMOD} ${BINMODE} ${JDK_JVMDIR}/jexec ${JDK_JVMDIR}/jspawnhelper
437
	${CHMOD} ${BINMODE} ${JDK_JVMDIR}/jexec ${JDK_JVMDIR}/jspawnhelper
438
	@${ECHO} "@dir ${INSTALLDIR}/lib/applet" >> ${TMPPLIST}
438
	@${ECHO} "@dir ${INSTALLDIR}/lib/applet" >> ${TMPPLIST}
439
.endif
439
.endif
(-)java/openjfx8-devel/Makefile (-1 / +1 lines)
Lines 56-61 do-install: Link Here
56
		&& ${TAR} -C ${STAGEDIR}${JAVA_HOME} \
56
		&& ${TAR} -C ${STAGEDIR}${JAVA_HOME} \
57
			-xf ${WRKSRC}/build/bundles/javafx-sdk-overlay.zip)
57
			-xf ${WRKSRC}/build/bundles/javafx-sdk-overlay.zip)
58
58
59
	@${FIND} ${STAGEDIR}${JAVA_HOME}/jre -name '*.so' -exec ${STRIP_CMD} \{\} \;
59
	@${FIND} ${STAGEDIR}${JAVA_HOME}/jre -name '*.so' -exec ${STRIP_CMD} {} +
60
60
61
.include <bsd.port.mk>
61
.include <bsd.port.mk>
(-)java/phpeclipse/Makefile (-1 / +1 lines)
Lines 30-36 PLIST_SUB= VER=${PLIST_VER} \ Link Here
30
post-patch:
30
post-patch:
31
.for _task in ${PATCH_TASKS}
31
.for _task in ${PATCH_TASKS}
32
	@${FIND} ${WRKDIR} -name build.xml -exec ${REINPLACE_CMD} -E \
32
	@${FIND} ${WRKDIR} -name build.xml -exec ${REINPLACE_CMD} -E \
33
		-e 's|<(${_task})(.*)/>|<!--\1\2/-->|1' \{} \;
33
		-e 's|<(${_task})(.*)/>|<!--\1\2/-->|1' {} +
34
.endfor
34
.endfor
35
35
36
do-build:
36
do-build:
(-)korean/xpdf/Makefile (-1 / +1 lines)
Lines 36-41 do-install: Link Here
36
	${MKDIR} ${STAGEDIR}${DATADIR}/korean/CMap
36
	${MKDIR} ${STAGEDIR}${DATADIR}/korean/CMap
37
	cd ${STAGEDIR}${DATADIR}/korean/CMap && \
37
	cd ${STAGEDIR}${DATADIR}/korean/CMap && \
38
	    ${FIND} ${ADOBECMAPDIR}/ak12/CMap \
38
	    ${FIND} ${ADOBECMAPDIR}/ak12/CMap \
39
		-type f -exec ${LN} -s -f {} . \;
39
		-type f -exec ${LN} -s -f {} . +
40
40
41
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)lang/ats/Makefile (-1 / +1 lines)
Lines 62-68 post-install: Link Here
62
	cd ${WRKSRC}/doc/EXAMPLE && \
62
	cd ${WRKSRC}/doc/EXAMPLE && \
63
	${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}
63
	${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}
64
	${FIND} ${STAGEDIR}${EXAMPLESDIR} -name Makefile \
64
	${FIND} ${STAGEDIR}${EXAMPLESDIR} -name Makefile \
65
	    -exec ${SED} -i '' -e 's|^ATSUSRQ=.*|ATSUSRQ="${PREFIX}"|' {} \;
65
	    -exec ${SED} -i '' -e 's|^ATSUSRQ=.*|ATSUSRQ="${PREFIX}"|' {} +
66
66
67
.include "bsd.ats.mk"
67
.include "bsd.ats.mk"
68
.include <bsd.port.post.mk>
68
.include <bsd.port.post.mk>
(-)lang/ats/bsd.ats.mk (-1 / +1 lines)
Lines 43-49 do-install: Link Here
43
	${FIND} ${ATS_CTRBEXAMPLEDIR} -name Makefile \
43
	${FIND} ${ATS_CTRBEXAMPLEDIR} -name Makefile \
44
	    -exec ${SED} -i '' \
44
	    -exec ${SED} -i '' \
45
	                 -e 's|^ATSUSRQ=.*|ATSUSRQ="${ATS_LIBDIR}"|' \
45
	                 -e 's|^ATSUSRQ=.*|ATSUSRQ="${ATS_LIBDIR}"|' \
46
	                 -e 's|^ATSLIBQ=.*|ATSLIBQ="${ATS_LIBDIR}"|' {} \;
46
	                 -e 's|^ATSLIBQ=.*|ATSLIBQ="${ATS_LIBDIR}"|' {} +
47
.endif
47
.endif
48
48
49
post-install-script:
49
post-install-script:
(-)lang/elk/Makefile (-1 / +1 lines)
Lines 36-41 post-install: Link Here
36
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
36
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
37
	@${TAR} -C ${WRKSRC}/examples --exclude "*Makefile*" -cf - . | \
37
	@${TAR} -C ${WRKSRC}/examples --exclude "*Makefile*" -cf - . | \
38
		${TAR} -C ${STAGEDIR}${EXAMPLESDIR} --unlink -xf -
38
		${TAR} -C ${STAGEDIR}${EXAMPLESDIR} --unlink -xf -
39
	@${FIND} ${STAGEDIR}${EXAMPLESDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
39
	@${FIND} ${STAGEDIR}${EXAMPLESDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} +
40
40
41
.include <bsd.port.post.mk>
41
.include <bsd.port.post.mk>
(-)lang/groovy/Makefile (-6 / +2 lines)
Lines 36-44 do-install: Link Here
36
	${INSTALL_DATA} ${WRKSRC}/embeddable/${PORTNAME}-all-${DISTVERSION:tu}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
36
	${INSTALL_DATA} ${WRKSRC}/embeddable/${PORTNAME}-all-${DISTVERSION:tu}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
37
	@${ECHO_MSG} " [ DONE ]"
37
	@${ECHO_MSG} " [ DONE ]"
38
	@${ECHO_MSG} -n ">> Staging data files in ${DATADIR}..."
38
	@${ECHO_MSG} -n ">> Staging data files in ${DATADIR}..."
39
	cd ${WRKSRC} \
39
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATAFILES}" ${STAGEDIR}${DATADIR}
40
	  && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; \
41
	  && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
42
	@${ECHO_MSG} " [ DONE ]"
40
	@${ECHO_MSG} " [ DONE ]"
43
	@${ECHO_MSG} -n ">> Staging executables in ${PREFIX}/bin..."
41
	@${ECHO_MSG} -n ">> Staging executables in ${PREFIX}/bin..."
44
	@${REINPLACE_CMD} -f ${WRKDIR}/set-groovy_home.sed ${WRKSRC}/bin/startGroovy
42
	@${REINPLACE_CMD} -f ${WRKDIR}/set-groovy_home.sed ${WRKSRC}/bin/startGroovy
Lines 50-58 do-install: Link Here
50
48
51
do-install-DOCS-on:
49
do-install-DOCS-on:
52
	@${ECHO_MSG} -n ">> Staging documentation in ${DOCSDIR}..."
50
	@${ECHO_MSG} -n ">> Staging documentation in ${DOCSDIR}..."
53
	@cd ${WRKSRC} \
51
	@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
54
	  && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
55
	  && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
56
	@${ECHO_MSG} " [ DONE ]"
52
	@${ECHO_MSG} " [ DONE ]"
57
53
58
post-install:
54
post-install:
(-)lang/io/Makefile (-1 / +1 lines)
Lines 39-45 post-patch: Link Here
39
post-install:
39
post-install:
40
	${FIND} -d ${STAGEDIR}${PREFIX}/lib/io/addons -type d -empty -delete
40
	${FIND} -d ${STAGEDIR}${PREFIX}/lib/io/addons -type d -empty -delete
41
	${FIND} ${STAGEDIR}${PREFIX}/lib/io/addons -type f -name "*.so" -exec \
41
	${FIND} ${STAGEDIR}${PREFIX}/lib/io/addons -type f -name "*.so" -exec \
42
		${STRIP_CMD} {} \;
42
		${STRIP_CMD} {} +
43
	${MKDIR}  ${STAGEDIR}${DOCSDIR}
43
	${MKDIR}  ${STAGEDIR}${DOCSDIR}
44
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
44
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
45
	${MKDIR}  ${STAGEDIR}${EXAMPLESDIR}
45
	${MKDIR}  ${STAGEDIR}${EXAMPLESDIR}
(-)lang/jruby/Makefile (-10 / +6 lines)
Lines 43-52 pre-patch: Link Here
43
43
44
post-patch:
44
post-patch:
45
	@${ECHO_MSG} -n ">> Adjusting shebangs to use /usr/bin/env ..."
45
	@${ECHO_MSG} -n ">> Adjusting shebangs to use /usr/bin/env ..."
46
	@${FIND} ${WRKSRC}/bin -type f -exec ${GREP} -q '^#!/bin/bash' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|' {} \;
46
	@${FIND} ${WRKSRC}/bin -type f -exec ${GREP} -q '^#!/bin/bash' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|' {} +
47
	@${FIND} ${WRKSRC} -type f -name '*.rb' -exec ${GREP} -q '^#!/usr/local/bin/ruby' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/usr/local/bin/ruby|#!/usr/bin/env jruby|' {} \;
47
	@${FIND} ${WRKSRC} -type f -name '*.rb' -exec ${GREP} -q '^#!/usr/local/bin/ruby' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/usr/local/bin/ruby|#!/usr/bin/env jruby|' {} +
48
.for target in ${SHEBANG_FILES}
48
.for target in ${SHEBANG_FILES}
49
	@${FIND} ${WRKSRC} -type f -name ${target} -exec ${GREP} -q '^#!/usr/bin/env ruby' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/usr/bin/env ruby|#!/usr/bin/env jruby|' {} \;
49
	@${FIND} ${WRKSRC} -type f -name ${target} -exec ${GREP} -q '^#!/usr/bin/env ruby' {} \; -exec ${REINPLACE_CMD} -e 's|^#!/usr/bin/env ruby|#!/usr/bin/env jruby|' {} +
50
.endfor
50
.endfor
51
	@${ECHO_MSG} " [ DONE ]"
51
	@${ECHO_MSG} " [ DONE ]"
52
52
Lines 63-74 post-patch: Link Here
63
do-install:
63
do-install:
64
	@${ECHO_MSG} -n ">> Installing JRuby files..."
64
	@${ECHO_MSG} -n ">> Installing JRuby files..."
65
65
66
	@cd ${WRKSRC}/bin \
66
	@cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${JRUBY_HOME}/bin
67
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${JRUBY_HOME}/bin/{} \; \
67
	@cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${JRUBY_HOME}/lib
68
	  && ${FIND} . -type f -exec ${INSTALL_SCRIPT} {} ${STAGEDIR}${JRUBY_HOME}/bin/{} \;
69
	@cd ${WRKSRC}/lib \
70
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${JRUBY_HOME}/lib/{} \; \
71
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${JRUBY_HOME}/lib/{} \;
72
68
73
	@${ECHO_MSG} " [ DONE ]"
69
	@${ECHO_MSG} " [ DONE ]"
74
70
Lines 79-85 do-install: Link Here
79
	@${ECHO_MSG} " [ DONE ]"
75
	@${ECHO_MSG} " [ DONE ]"
80
76
81
	@${ECHO_MSG} -n ">> Stripping shared libraries for jnr-ffi"
77
	@${ECHO_MSG} -n ">> Stripping shared libraries for jnr-ffi"
82
	@${FIND} ${STAGEDIR}${JRUBY_HOME}/lib/jni/x86_64-FreeBSD -type f -name '*\.so' -exec ${STRIP_CMD} {} \;
78
	@${FIND} ${STAGEDIR}${JRUBY_HOME}/lib/jni/x86_64-FreeBSD -type f -name '*\.so' -exec ${STRIP_CMD} {} +
83
	@${ECHO_MSG} " [ DONE ]"
79
	@${ECHO_MSG} " [ DONE ]"
84
80
85
.if ${PORT_OPTIONS:MDOCS}
81
.if ${PORT_OPTIONS:MDOCS}
(-)lang/ruby21/Makefile (-1 / +1 lines)
Lines 208-214 post-install-DEBUG-off: Link Here
208
.if defined(STRIP) && ${STRIP} == -s
208
.if defined(STRIP) && ${STRIP} == -s
209
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${RUBY_NAME}
209
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${RUBY_NAME}
210
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libruby${RUBY_SHLIBVER}.so.${RUBY_SHLIBVER}
210
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libruby${RUBY_SHLIBVER}.so.${RUBY_SHLIBVER}
211
	${FIND} ${STAGEDIR}${RUBY_ARCHLIBDIR} -type f -name '*\.so' -exec ${STRIP_CMD} {} \;
211
	${FIND} ${STAGEDIR}${RUBY_ARCHLIBDIR} -type f -name '*\.so' -exec ${STRIP_CMD} {} +
212
.endif
212
.endif
213
213
214
post-install-DOCS-on:
214
post-install-DOCS-on:
(-)lang/ruby22/Makefile (-1 / +1 lines)
Lines 205-211 post-install-DEBUG-off: Link Here
205
.if defined(STRIP) && ${STRIP} == -s
205
.if defined(STRIP) && ${STRIP} == -s
206
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${RUBY_NAME}
206
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${RUBY_NAME}
207
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libruby${RUBY_SHLIBVER}.so.${RUBY_SHLIBVER}
207
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libruby${RUBY_SHLIBVER}.so.${RUBY_SHLIBVER}
208
	${FIND} ${STAGEDIR}${RUBY_ARCHLIBDIR} -type f -name '*\.so' -exec ${STRIP_CMD} {} \;
208
	${FIND} ${STAGEDIR}${RUBY_ARCHLIBDIR} -type f -name '*\.so' -exec ${STRIP_CMD} {} +
209
.endif
209
.endif
210
210
211
post-install-DOCS-on:
211
post-install-DOCS-on:
(-)lang/ruby23/Makefile (-1 / +1 lines)
Lines 208-214 post-install-DEBUG-off: Link Here
208
.if defined(STRIP) && ${STRIP} == -s
208
.if defined(STRIP) && ${STRIP} == -s
209
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${RUBY_NAME}
209
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${RUBY_NAME}
210
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libruby${RUBY_SHLIBVER}.so.${RUBY_SHLIBVER}
210
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libruby${RUBY_SHLIBVER}.so.${RUBY_SHLIBVER}
211
	${FIND} ${STAGEDIR}${RUBY_ARCHLIBDIR} -type f -name '*\.so' -exec ${STRIP_CMD} {} \;
211
	${FIND} ${STAGEDIR}${RUBY_ARCHLIBDIR} -type f -name '*\.so' -exec ${STRIP_CMD} {} +
212
.endif
212
.endif
213
213
214
post-install-DOCS-on:
214
post-install-DOCS-on:
(-)lang/starlogo/Makefile (-3 / +1 lines)
Lines 23-30 SUB_FILES= starlogo.sh Link Here
23
23
24
do-install:
24
do-install:
25
	${INSTALL_SCRIPT} ${WRKDIR}/starlogo.sh ${STAGEDIR}${PREFIX}/bin/starlogo
25
	${INSTALL_SCRIPT} ${WRKDIR}/starlogo.sh ${STAGEDIR}${PREFIX}/bin/starlogo
26
	cd ${WRKSRC} \
26
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
27
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; \
28
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
29
27
30
.include <bsd.port.mk>
28
.include <bsd.port.mk>
(-)mail/davmail/Makefile (-14 / +2 lines)
Lines 38-57 post-patch: Link Here
38
		${WRKSRC}/build.xml
38
		${WRKSRC}/build.xml
39
39
40
do-install:
40
do-install:
41
	@cd ${WRKSRC}/dist && ${FIND} . -type d \
41
	@cd ${WRKSRC}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \
42
		-exec ${MKDIR} ${STAGEDIR}${DATADIR}/\{} \;
42
		'-not -iregex .*\.(deb|md5|tgz|exe|zip|war|rpm|desktop) -not -name swt-*\.jar'
43
	@cd ${WRKSRC}/dist && ${FIND} . -type f \
44
		-not -name "*.deb" \
45
		-not -name "*.md5" \
46
		-not -name "*.MD5" \
47
		-not -name "*.tgz" \
48
		-not -name "*.exe" \
49
		-not -name "swt-*.jar" \
50
		-not -name "*.zip" \
51
		-not -name "*.war" \
52
		-not -name "*.rpm" \
53
		-not -name "*.desktop" \
54
		-exec ${INSTALL_DATA} \{} ${STAGEDIR}${DATADIR}/\{} \;
55
	@${FIND} ${STAGEDIR}/${DATADIR} -depth -empty -type d -delete
43
	@${FIND} ${STAGEDIR}/${DATADIR} -depth -empty -type d -delete
56
	${INSTALL_SCRIPT} ${WRKDIR}/davmail.sh ${STAGEDIR}${PREFIX}/bin/davmail
44
	${INSTALL_SCRIPT} ${WRKDIR}/davmail.sh ${STAGEDIR}${PREFIX}/bin/davmail
57
	${INSTALL_DATA} ${WRKSRC}/src/etc/davmail.properties \
45
	${INSTALL_DATA} ${WRKSRC}/src/etc/davmail.properties \
(-)mail/exim/Makefile (-1 / +1 lines)
Lines 522-528 pre-everything:: Link Here
522
	@${ECHO} ''
522
	@${ECHO} ''
523
	@${ECHO} 'Included extra patches:'
523
	@${ECHO} 'Included extra patches:'
524
	@${FIND} ${PATCHDIR} -name 'wishlist-*.patch' \
524
	@${FIND} ${PATCHDIR} -name 'wishlist-*.patch' \
525
	    -exec ${SED} -ne 's,^# , ,p' {} \;
525
	    -exec ${SED} -ne 's,^# , ,p' {} +
526
	@${ECHO} ''
526
	@${ECHO} ''
527
.endif
527
.endif
528
528
(-)mail/roundcube-mvision2/Makefile (-1 / +1 lines)
Lines 25-30 do-install: Link Here
25
	@${MKDIR} ${STAGEDIR}${WWWDIR}
25
	@${MKDIR} ${STAGEDIR}${WWWDIR}
26
	cd ${WRKDIR}/mvision2_en && ${PAX} -r -w . \
26
	cd ${WRKDIR}/mvision2_en && ${PAX} -r -w . \
27
		${STAGEDIR}${WWWDIR}
27
		${STAGEDIR}${WWWDIR}
28
	${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 0644 {} \;
28
	${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 0644 {} +
29
29
30
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)mail/squirrelmail-avelsieve-plugin/Makefile (-1 / +1 lines)
Lines 11-17 COMMENT= SquirrelMail plugin for Server-Side Mail Filtering management Link Here
11
pre-install:
11
pre-install:
12
	${RM} -R ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/po
12
	${RM} -R ${WRKSRC}/${SQUIRREL_PLUGIN_NAME}/po
13
	${FIND} ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} -type f \
13
	${FIND} ${WRKSRC}/${SQUIRREL_PLUGIN_NAME} -type f \
14
		\( -name '.cvsignore' -o -name '*.bak' -o -name '*.orig' \) -exec ${RM} {} \;
14
		\( -name '.cvsignore' -o -name '*.bak' -o -name '*.orig' \) -delete
15
15
16
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
16
.include "${.CURDIR}/../squirrelmail/bsd.squirrelmail.mk"
17
.include <bsd.port.mk>
17
.include <bsd.port.mk>
(-)mail/squirrelmail/bsd.squirrelmail.mk (-6 / +2 lines)
Lines 95-106 _SMSRCDIR?= ${SQUIRREL_PLUGIN_NAME} Link Here
95
95
96
.if !target(do-install)
96
.if !target(do-install)
97
do-install:
97
do-install:
98
	(cd ${WRKSRC}/${_SMSRCDIR} && ${FIND} -d . | \
98
	(cd ${WRKSRC}/${_SMSRCDIR} && \
99
		${CPIO} -dump ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} >/dev/null 2>&1 && \
99
		${COPYTREE_SHARE} . ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME})
100
	${FIND} ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} \
101
		-type d -exec chmod 755 {} \; && \
102
	${FIND} ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} \
103
		-type f -exec chmod 644 {} \;)
104
.endif
100
.endif
105
101
106
.if !target(post-install)
102
.if !target(post-install)
(-)mail/vexim/Makefile (-12 / +3 lines)
Lines 48-68 post-patch: Link Here
48
do-install:
48
do-install:
49
	@${ECHO} "Installing in ${VEXIMDIR}"
49
	@${ECHO} "Installing in ${VEXIMDIR}"
50
	${MKDIR} ${STAGEDIR}${PREFIX}/${VEXIMDIR}
50
	${MKDIR} ${STAGEDIR}${PREFIX}/${VEXIMDIR}
51
	cd ${WRKSRC}/vexim && ${FIND} . \
51
	cd ${WRKSRC}/vexim && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${VEXIMDIR}
52
		-type d -exec ${MKDIR} ${STAGEDIR}${PREFIX}/${VEXIMDIR}/{} \;  \
53
		-o -type f \
54
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/${VEXIMDIR}/{} \;
55
	${MKDIR} ${STAGEDIR}${DATADIR}
52
	${MKDIR} ${STAGEDIR}${DATADIR}
56
	cd ${WRKSRC}/setup && ${FIND} . \
53
	cd ${WRKSRC}/setup && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
57
		-type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; \
58
		-o -type f \
59
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
60
.if ${PORT_OPTIONS:MDOCS}
54
.if ${PORT_OPTIONS:MDOCS}
61
	${MKDIR} ${STAGEDIR}${DOCSDIR}
55
	${MKDIR} ${STAGEDIR}${DOCSDIR}
62
	cd ${WRKSRC} && ${FIND} docs \
56
	cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DOCSDIR}
63
		-type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
64
		-o -type f \
65
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
66
.for i in INSTALL README TODO
57
.for i in INSTALL README TODO
67
	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
58
	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
68
.endfor
59
.endfor
(-)math/blacs/Makefile (-1 / +1 lines)
Lines 88-94 post-build: Link Here
88
	${MV} ${WRKSRC_SHARED}/LIB/blacs_MPI-FreeBSD-${DEBUG_LEVEL}.a          ${WRKSRC_SHARED}/LIB/libblacsc.a
88
	${MV} ${WRKSRC_SHARED}/LIB/blacs_MPI-FreeBSD-${DEBUG_LEVEL}.a          ${WRKSRC_SHARED}/LIB/libblacsc.a
89
	${MV} ${WRKSRC_SHARED}/LIB/blacsF77init_MPI-FreeBSD-${DEBUG_LEVEL}.a   ${WRKSRC_SHARED}/LIB/libblacsf77.a
89
	${MV} ${WRKSRC_SHARED}/LIB/blacsF77init_MPI-FreeBSD-${DEBUG_LEVEL}.a   ${WRKSRC_SHARED}/LIB/libblacsf77.a
90
	${MV} ${WRKSRC_SHARED}/LIB/blacsCinit_MPI-FreeBSD-${DEBUG_LEVEL}.a     ${WRKSRC_SHARED}/LIB/libblacs.a
90
	${MV} ${WRKSRC_SHARED}/LIB/blacsCinit_MPI-FreeBSD-${DEBUG_LEVEL}.a     ${WRKSRC_SHARED}/LIB/libblacs.a
91
	${FIND} ${WRKSRC_SHARED} -name "*\.a" -exec ${MV} {} ${WRKDIR}/tmp_shared \;
91
	${FIND} ${WRKSRC_SHARED} -name "*\.a" -exec ${MV} {} ${WRKDIR}/tmp_shared +
92
	cd ${WRKDIR}/tmp_shared ; for i in `ls *.a | ${SED}  's/\.a//' `; do \
92
	cd ${WRKDIR}/tmp_shared ; for i in `ls *.a | ${SED}  's/\.a//' `; do \
93
		${LD} -Bshareable -o $${i}.so.${SVERSION} -x -soname $${i}.so.${SVERSION} --whole-archive $${i}.a ;\
93
		${LD} -Bshareable -o $${i}.so.${SVERSION} -x -soname $${i}.so.${SVERSION} --whole-archive $${i}.a ;\
94
	${LN} -s $${i}.so.${SVERSION} $${i}.so ;\
94
	${LN} -s $${i}.so.${SVERSION} $${i}.so ;\
(-)math/djbfft/Makefile (-1 / +1 lines)
Lines 22-28 LIB_FILES= libdjbfft.a Link Here
22
22
23
post-patch:
23
post-patch:
24
	@${FIND} ${WRKSRC} -type f -exec \
24
	@${FIND} ${WRKSRC} -type f -exec \
25
		${REINPLACE_CMD} -E -e 's!(djbfft.a)!lib\1!' {} \;
25
		${REINPLACE_CMD} -E -e 's!(djbfft.a)!lib\1!' {} +
26
	@${REINPLACE_CMD} -E 's|("include)|\1/${PORTNAME}|' ${WRKSRC}/hier.c
26
	@${REINPLACE_CMD} -E 's|("include)|\1/${PORTNAME}|' ${WRKSRC}/hier.c
27
27
28
do-configure:
28
do-configure:
(-)math/jacal/Makefile (-1 / +1 lines)
Lines 23-29 INFO= jacal Link Here
23
23
24
do-configure:
24
do-configure:
25
	cd ${WRKSRC}; \
25
	cd ${WRKSRC}; \
26
	${FIND} . -type f -exec ${PERL} -spi -e 's|%%PREFIX%%|${PREFIX}|' {} ';'
26
	${FIND} . -type f -exec ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' {} +
27
	cd ${WRKSRC}; \
27
	cd ${WRKSRC}; \
28
	./configure
28
	./configure
29
29
(-)math/jakarta-commons-math/Makefile (-3 / +1 lines)
Lines 59-67 do-install: Link Here
59
.if ${PORT_OPTIONS:MDOCS}
59
.if ${PORT_OPTIONS:MDOCS}
60
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
60
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
61
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
61
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
62
	@cd ${WRKSRC}/target \
62
	cd ${WRKSRC}/target && ${COPYTREE_SHARE} -s apidocs ${STAGEDIR}${DOCSDIR}
63
	  && ${FIND} -s apidocs -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
64
	  && ${FIND} -s apidocs -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
65
	${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
63
	${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
66
	@${ECHO_MSG} " [ DONE ]"
64
	@${ECHO_MSG} " [ DONE ]"
67
.endif
65
.endif
(-)math/jakarta-commons-math3/Makefile (-3 / +1 lines)
Lines 55-63 do-install: Link Here
55
55
56
.if ${PORT_OPTIONS:MDOCS}
56
.if ${PORT_OPTIONS:MDOCS}
57
	${MKDIR} ${STAGEDIR}${DOCSDIR}
57
	${MKDIR} ${STAGEDIR}${DOCSDIR}
58
	cd ${WRKSRC}/target \
58
	cd ${WRKSRC}/target && ${COPYTREE_SHARE} -s apidocs ${STAGEDIR}${DOCSDIR}
59
	  && ${FIND} -s apidocs -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
60
	  && ${FIND} -s apidocs -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
61
	${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
59
	${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
62
.endif
60
.endif
63
61
(-)math/plman/Makefile (-3 / +2 lines)
Lines 34-42 post-patch: Link Here
34
34
35
do-install:
35
do-install:
36
	${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
36
	${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
37
	${MKDIR} ${STAGEDIR}${DATADIR}/${FIND_DATA}
37
	cd ${WRKSRC} && ${COPYTREE_SHARE} ${FIND_DATA} ${STAGEDIR}${DATADIR}
38
	cd ${WRKSRC} && ${FIND} ${FIND_DATA} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
39
	${MKDIR} ${STAGEDIR}${DOCSDIR}
38
	${MKDIR} ${STAGEDIR}${DOCSDIR}
40
	cd ${WRKSRC}/${FIND_DOCS} && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
39
	cd ${WRKSRC}/${FIND_DOCS} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
41
40
42
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)math/primegen/Makefile (-1 / +1 lines)
Lines 30-36 PLIST_FILES+= man/man1/primes.1.gz man/man1/primegaps.1.gz \ Link Here
30
30
31
post-patch:
31
post-patch:
32
	@${FIND} ${WRKSRC} -type f -exec \
32
	@${FIND} ${WRKSRC} -type f -exec \
33
		${REINPLACE_CMD} -E -e 's!(primegen.a)!lib\1!' {} \;
33
		${REINPLACE_CMD} -E -e 's!(primegen.a)!lib\1!' {} +
34
34
35
do-configure:
35
do-configure:
36
	@${ECHO_CMD} '${CC} ${CFLAGS} -fsigned-char -fPIC' > ${WRKSRC}/conf-cc
36
	@${ECHO_CMD} '${CC} ${CFLAGS} -fsigned-char -fPIC' > ${WRKSRC}/conf-cc
(-)math/py-numarray/Makefile (-4 / +3 lines)
Lines 28-42 post-configure: Link Here
28
28
29
post-install:
29
post-install:
30
	@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/numarray -name "*.so" -exec \
30
	@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/numarray -name "*.so" -exec \
31
		${STRIP_CMD} {} \;
31
		${STRIP_CMD} {} +
32
32
33
post-install-DOCS-on:
33
post-install-DOCS-on:
34
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
34
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
35
	@${TAR} -C ${WRKSRC}/Doc -cf- .|${TAR} -C ${STAGEDIR}${DOCSDIR} -xf-
35
	cd ${WRKSRC}/Doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
36
36
37
post-install-EXAMPLES-on:
37
post-install-EXAMPLES-on:
38
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
38
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
39
	@${TAR} -C ${WRKSRC}/Examples -cf- .|${TAR} -C ${STAGEDIR}${EXAMPLESDIR} -xf-
39
	cd ${WRKSRC}/Examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
40
	@${RM} -r ${STAGEDIR}${EXAMPLESDIR}/ufunc/build
41
40
42
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)math/py-numeric/Makefile (-1 / +1 lines)
Lines 42-48 post-extract: Link Here
42
42
43
post-install:
43
post-install:
44
	@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Numeric -name "*.so" -exec \
44
	@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Numeric -name "*.so" -exec \
45
		${STRIP_CMD} {} \;
45
		${STRIP_CMD} {} +
46
46
47
post-install-DOCS-on:
47
post-install-DOCS-on:
48
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
48
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)math/superlu_mt/Makefile (-2 / +2 lines)
Lines 91-100 do-build: Link Here
91
	${RM} -r ${WRKDIR}/tmp_static
91
	${RM} -r ${WRKDIR}/tmp_static
92
	${MKDIR} ${WRKDIR}/tmp_static
92
	${MKDIR} ${WRKDIR}/tmp_static
93
	cd ${WRKDIR}/tmp_static
93
	cd ${WRKDIR}/tmp_static
94
	${FIND} ${WRKSRC} -name "*\.a" -exec ${CP} {} ${WRKDIR}/tmp_static \;
94
	${FIND} ${WRKSRC} -name "*\.a" -exec ${CP} {} ${WRKDIR}/tmp_static +
95
	${RM} -r ${WRKDIR}/tmp_shared
95
	${RM} -r ${WRKDIR}/tmp_shared
96
	${MKDIR} ${WRKDIR}/tmp_shared
96
	${MKDIR} ${WRKDIR}/tmp_shared
97
	${FIND} ${WRKSRC_SHARED} -name "*\.a" -exec ${CP} {} ${WRKDIR}/tmp_shared \;
97
	${FIND} ${WRKSRC_SHARED} -name "*\.a" -exec ${CP} {} ${WRKDIR}/tmp_shared +
98
	@cd ${WRKDIR}/tmp_shared ; for i in `ls *.a | ${SED}  's/\.a//' `; do \
98
	@cd ${WRKDIR}/tmp_shared ; for i in `ls *.a | ${SED}  's/\.a//' `; do \
99
	${RM} $${i}.so.* $${i}.so ; \
99
	${RM} $${i}.so.* $${i}.so ; \
100
	${FC} ${CFLAGS} ${FPIC} ${LDFLAGS} -shared -o $${i}.so.${SVERSION} \
100
	${FC} ${CFLAGS} ${FPIC} ${LDFLAGS} -shared -o $${i}.so.${SVERSION} \
(-)misc/digitemp/Makefile (-4 / +1 lines)
Lines 42-50 do-install: Link Here
42
post-install-DOCS-on:
42
post-install-DOCS-on:
43
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
43
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
44
	${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
44
	${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
45
.for dir in perl python/gui python/mysql rrdb
45
	cd ${WRKSRC} && ${COPYTREE_SHARE} "perl python/gui python/mysql rrdb" ${STAGEDIR}${DOCSDIR}
46
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/${dir}
47
	${FIND} ${WRKSRC}/${dir}/ -maxdepth 1 -type f -exec ${INSTALL_DATA} \{\} ${STAGEDIR}${DOCSDIR}/${dir} \;
48
.endfor
49
46
50
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)misc/freebsd-doc-en/Makefile (-3 / +2 lines)
Lines 97-105 pre-build: Link Here
97
post-build:
97
post-build:
98
.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MHTML_SPLIT}
98
.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MHTML_SPLIT}
99
	${FIND} ${WRKSRC} -name "*.html" -exec \
99
	${FIND} ${WRKSRC} -name "*.html" -exec \
100
		${REINPLACE_CMD} -e 's,img src=\"${WRKSRC}.*share/images,img src=\"../..,g' {} \;
100
		${REINPLACE_CMD} -e 's,img src=\"${WRKSRC}.*share/images,img src=\"../..,g' \
101
	${FIND} ${WRKSRC} -name "*.html" -exec \
101
				 -e 's,img src=\"${WRKSRC}.*imagelib,img src=\"imagelib,g' {} +
102
		${REINPLACE_CMD} -e 's,img src=\"${WRKSRC}.*imagelib,img src=\"imagelib,g' {} \;
103
.endif
102
.endif
104
103
105
.include <bsd.port.mk>
104
.include <bsd.port.mk>
(-)misc/gctpc/Makefile (-1 / +1 lines)
Lines 21-27 OPTIONS_DEFINE= DOCS Link Here
21
21
22
post-extract:
22
post-extract:
23
	@${FIND} ${FILESDIR} -name "*.h" -not -name "patch-*" -exec \
23
	@${FIND} ${FILESDIR} -name "*.h" -not -name "patch-*" -exec \
24
		${INSTALL_DATA} {} ${WRKSRC} \;
24
		${INSTALL_DATA} {} ${WRKSRC} +
25
25
26
do-install:
26
do-install:
27
	${INSTALL_DATA} ${WRKSRC}/libgctpc.a ${STAGEDIR}${PREFIX}/lib
27
	${INSTALL_DATA} ${WRKSRC}/libgctpc.a ${STAGEDIR}${PREFIX}/lib
(-)misc/metalink-editor/Makefile (-1 / +1 lines)
Lines 63-69 post-install: Link Here
63
		${STAGEDIR}${DATADIR} \
63
		${STAGEDIR}${DATADIR} \
64
		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Metalink_editor \
64
		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Metalink_editor \
65
		-type f -exec \
65
		-type f -exec \
66
		${CHMOD} ${SHAREMODE} {} \;
66
		${CHMOD} ${SHAREMODE} {} +
67
67
68
post-install-DOCS-on:
68
post-install-DOCS-on:
69
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
69
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)misc/py-yolk/Makefile (-2 / +1 lines)
Lines 28-35 post-install: Link Here
28
	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
28
	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
29
.if ${PORT_OPTIONS:MEXAMPLES}
29
.if ${PORT_OPTIONS:MEXAMPLES}
30
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
30
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
31
	@cd ${WRKSRC}/examples && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} ";"
31
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
32
	cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} ";"
33
.endif
32
.endif
34
33
35
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
(-)misc/tvbrowser/Makefile (-4 / +1 lines)
Lines 25-34 do-install: Link Here
25
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
25
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
26
		${STAGEDIR}${PREFIX}/share/applications/
26
		${STAGEDIR}${PREFIX}/share/applications/
27
	@${RM} ${WRKSRC}/${PORTNAME}.desktop ${WRKSRC}/${PORTNAME}.desktop.bak
27
	@${RM} ${WRKSRC}/${PORTNAME}.desktop ${WRKSRC}/${PORTNAME}.desktop.bak
28
	@cd ${WRKSRC} && ${FIND} . -type d -exec \
28
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
29
		${MKDIR} "${STAGEDIR}${DATADIR}/{}" \;
30
	@cd ${WRKSRC} && ${FIND} . -type f -exec \
31
		${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
32
	${INSTALL_SCRIPT} ${WRKDIR}/tvbrowser ${STAGEDIR}${PREFIX}/bin
29
	${INSTALL_SCRIPT} ${WRKDIR}/tvbrowser ${STAGEDIR}${PREFIX}/bin
33
30
34
.include <bsd.port.mk>
31
.include <bsd.port.mk>
(-)multimedia/audacious-plugins-gtk3/Makefile (-1 / +1 lines)
Lines 127-132 post-patch: Link Here
127
127
128
post-install:
128
post-install:
129
	@${FIND} ${STAGEDIR}${PREFIX}/lib/audacious/ -name "*.so" \
129
	@${FIND} ${STAGEDIR}${PREFIX}/lib/audacious/ -name "*.so" \
130
		-exec ${STRIP_CMD} {} \;
130
		-exec ${STRIP_CMD} {} +
131
131
132
.include <bsd.port.mk>
132
.include <bsd.port.mk>
(-)multimedia/audacious-plugins/Makefile (-1 / +1 lines)
Lines 122-127 post-patch: Link Here
122
122
123
post-install:
123
post-install:
124
	@${FIND} ${STAGEDIR}${PREFIX}/lib/audacious/ -name "*.so" \
124
	@${FIND} ${STAGEDIR}${PREFIX}/lib/audacious/ -name "*.so" \
125
		-exec ${STRIP_CMD} {} \;
125
		-exec ${STRIP_CMD} {} +
126
126
127
.include <bsd.port.mk>
127
.include <bsd.port.mk>
(-)multimedia/plexmediaserver/Makefile (-3 / +3 lines)
Lines 41-49 RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libstdc++.so.6:misc/compat9x Link Here
41
41
42
post-patch:
42
post-patch:
43
	# binaries don't come pre-stripped
43
	# binaries don't come pre-stripped
44
	${FIND} ${WRKSRC}/Resources -name '*.so' -exec ${STRIP_CMD} {} \+
44
	${FIND} ${WRKSRC}/Resources -name '*.so' -exec ${STRIP_CMD} {} +
45
	${FIND} ${WRKSRC} ${WRKSRC}/Resources -name 'Plex*' -depth 1 -exec ${STRIP_CMD} {} \+
45
	${FIND} ${WRKSRC} ${WRKSRC}/Resources -name 'Plex*' -depth 1 -exec ${STRIP_CMD} {} +
46
	${FIND} ${WRKSRC} -depth 1 -name 'lib*' -exec ${STRIP_CMD} {} \+
46
	${FIND} ${WRKSRC} -depth 1 -name 'lib*' -exec ${STRIP_CMD} {} +
47
	${RM} ${WRKSRC}/start.sh
47
	${RM} ${WRKSRC}/start.sh
48
	# Older verisons of Plex we have to create a symlink
48
	# Older verisons of Plex we have to create a symlink
49
	# Newer versions of Plex ship a duplicate file; we'll just symlink
49
	# Newer versions of Plex ship a duplicate file; we'll just symlink
(-)net-im/convey/Makefile (-2 / +1 lines)
Lines 26-32 SUB_FILES= convey.sh Link Here
26
26
27
do-install:
27
do-install:
28
	${INSTALL_SCRIPT} ${WRKDIR}/convey.sh ${STAGEDIR}${PREFIX}/bin/convey
28
	${INSTALL_SCRIPT} ${WRKDIR}/convey.sh ${STAGEDIR}${PREFIX}/bin/convey
29
	cd ${WRKSRC} && ${FIND} ${FIND_DIRS} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \;
29
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${FIND_DIRS}" ${STAGEDIR}${DATADIR}
30
	cd ${WRKSRC} && ${FIND} ${FIND_DIRS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
31
30
32
.include <bsd.port.mk>
31
.include <bsd.port.mk>
(-)net-im/ejabberd/Makefile (-1 / +1 lines)
Lines 101-106 post-install: Link Here
101
		${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/bin/epam
101
		${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR}/${PORTNAME}-${PORTVERSION}/priv/bin/epam
102
.endif
102
.endif
103
	@${FIND} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR} -type f \
103
	@${FIND} ${STAGEDIR}${PREFIX}/${EJABBERD_LIBDIR} -type f \
104
		-name '*.so' -exec ${STRIP_CMD} '{}' \;
104
		-name '*.so' -exec ${STRIP_CMD} {} +
105
105
106
.include <bsd.port.post.mk>
106
.include <bsd.port.post.mk>
(-)net-im/jabber-pyicq/Makefile (-3 / +1 lines)
Lines 95-103 do-install: Link Here
95
	${INSTALL_SCRIPT} ${WRKSRC}/PyICQt.py ${STAGEDIR}${INST_DIR}/
95
	${INSTALL_SCRIPT} ${WRKSRC}/PyICQt.py ${STAGEDIR}${INST_DIR}/
96
	${INSTALL_DATA} ${WRKSRC}/data/defaultAIMAvatar.png ${STAGEDIR}${INST_DIR}/data/
96
	${INSTALL_DATA} ${WRKSRC}/data/defaultAIMAvatar.png ${STAGEDIR}${INST_DIR}/data/
97
	${INSTALL_DATA} ${WRKSRC}/data/defaultICQAvatar.png ${STAGEDIR}${INST_DIR}/data/
97
	${INSTALL_DATA} ${WRKSRC}/data/defaultICQAvatar.png ${STAGEDIR}${INST_DIR}/data/
98
	${CP} -Rv ${WRKSRC}/src/* ${STAGEDIR}${INST_DIR}/src/
98
	cd ${WRKSRC}/src && ${COPYTRE_SHARE} ${STAGEDIR}${INST_DIR}/src
99
	${FIND} ${STAGEDIR}${INST_DIR}/src/ -type d -exec ${CHMOD} 755 "{}" \;
100
	${FIND} ${STAGEDIR}${INST_DIR}/src/ -type f -exec ${CHMOD} 644 "{}" \;
101
	${INSTALL_DATA} ${WRKSRC}/config_example.xml ${STAGEDIR}${PREFIX}/etc/jabber-pyicq.xml.sample
99
	${INSTALL_DATA} ${WRKSRC}/config_example.xml ${STAGEDIR}${PREFIX}/etc/jabber-pyicq.xml.sample
102
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
100
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
103
	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
101
	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
(-)net-mgmt/guifi-snpservices/Makefile (-1 / +1 lines)
Lines 32-37 do-install: Link Here
32
	${MKDIR} ${STAGEDIR}${WWWDIR}
32
	${MKDIR} ${STAGEDIR}${WWWDIR}
33
	(cd ${WRKSRC} \
33
	(cd ${WRKSRC} \
34
		&& ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR})
34
		&& ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR})
35
	${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 644 '{}' +
35
	${FIND} ${STAGEDIR}${WWWDIR} -type f -exec ${CHMOD} 644 {} +
36
36
37
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)net-mgmt/librenms/Makefile (-2 / +2 lines)
Lines 109-118 do-install: Link Here
109
# Create empty rrd dir writable by www
109
# Create empty rrd dir writable by www
110
	@${MKDIR} ${STAGEDIR}/${WWWDIR}/rrd
110
	@${MKDIR} ${STAGEDIR}/${WWWDIR}/rrd
111
# Files in scripts dir should be executable
111
# Files in scripts dir should be executable
112
	@${FIND} ${STAGEDIR}/${WWWDIR}/scripts -type f -exec ${CHMOD} +x {} \;
112
	@${FIND} ${STAGEDIR}/${WWWDIR}/scripts -type f -exec ${CHMOD} +x {} +
113
# Ensure PHP and Python scripts are executable
113
# Ensure PHP and Python scripts are executable
114
	@${FIND} ${STAGEDIR}/${WWWDIR} -type f -name '*.py' -or -type f -name \
114
	@${FIND} ${STAGEDIR}/${WWWDIR} -type f -name '*.py' -or -type f -name \
115
	       '*.php' -exec ${CHMOD} +x {} \;
115
	       '*.php' -exec ${CHMOD} +x {} +
116
116
117
do-install-DOCS-on:
117
do-install-DOCS-on:
118
	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
118
	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
(-)net-mgmt/observium/Makefile (-2 / +2 lines)
Lines 129-137 do-install: Link Here
129
	# Create empty rrd dir and logs writable by www (the apache user)
129
	# Create empty rrd dir and logs writable by www (the apache user)
130
	${MKDIR} ${STAGEDIR}/${WWWDIR}/rrd ${STAGEDIR}/${WWWDIR}/logs
130
	${MKDIR} ${STAGEDIR}/${WWWDIR}/rrd ${STAGEDIR}/${WWWDIR}/logs
131
	# Files in scripts dir should be executable
131
	# Files in scripts dir should be executable
132
	${FIND} ${STAGEDIR}/${WWWDIR}/scripts -type f -exec ${CHMOD} +x {} \;
132
	${FIND} ${STAGEDIR}/${WWWDIR}/scripts -type f -exec ${CHMOD} +x {} +
133
	# Ensure PHP and Python scripts are executable
133
	# Ensure PHP and Python scripts are executable
134
	${FIND} ${STAGEDIR}/${WWWDIR} -type f -name '*.py' -or -type f -name '*.php' -exec ${CHMOD} +x {} \;
134
	${FIND} ${STAGEDIR}/${WWWDIR} -type f -name '*.py' -or -type f -name '*.php' -exec ${CHMOD} +x {} +
135
	# Rename for @sample
135
	# Rename for @sample
136
	${MV} ${STAGEDIR}/${WWWDIR}/config.php.default ${STAGEDIR}/${WWWDIR}/config.php.default.sample
136
	${MV} ${STAGEDIR}/${WWWDIR}/config.php.default ${STAGEDIR}/${WWWDIR}/config.php.default.sample
137
137
(-)net-mgmt/zabbix2-server/Makefile (-1 / +1 lines)
Lines 149-155 post-patch: Link Here
149
.endif
149
.endif
150
	@${REINPLACE_CMD} -Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
150
	@${REINPLACE_CMD} -Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
151
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
151
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
152
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -exec ${RM} {} +
152
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -delete
153
153
154
post-install:
154
post-install:
155
.if ${PORT_OPTIONS:MJAVAGW}
155
.if ${PORT_OPTIONS:MJAVAGW}
(-)net-mgmt/zabbix22-server/Makefile (-1 / +1 lines)
Lines 146-152 post-patch: Link Here
146
.endif
146
.endif
147
	@${REINPLACE_CMD} -Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
147
	@${REINPLACE_CMD} -Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
148
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
148
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
149
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -exec ${RM} {} +
149
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -delete
150
150
151
.if ${ZABBIX_BUILD} == "server"
151
.if ${ZABBIX_BUILD} == "server"
152
	@${REINPLACE_CMD} -e 's#PidFile=/tmp/zabbix_server.pid#PidFile=/var/run/zabbix/zabbix_server.pid#g' \
152
	@${REINPLACE_CMD} -e 's#PidFile=/tmp/zabbix_server.pid#PidFile=/var/run/zabbix/zabbix_server.pid#g' \
(-)net-mgmt/zabbix24-server/Makefile (-2 / +1 lines)
Lines 155-162 post-patch: Link Here
155
	@${REINPLACE_CMD} \
155
	@${REINPLACE_CMD} \
156
		-Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
156
		-Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
157
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
157
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
158
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) \
158
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -delete
159
		-exec ${RM} {} +
160
159
161
post-install:
160
post-install:
162
161
(-)net-mgmt/zabbix3-server/Makefile (-2 / +1 lines)
Lines 193-200 post-patch: Link Here
193
	@${REINPLACE_CMD} \
193
	@${REINPLACE_CMD} \
194
		-Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
194
		-Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
195
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
195
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
196
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) \
196
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -delete
197
		-exec ${RM} {} +
198
197
199
post-install:
198
post-install:
200
199
(-)net-mgmt/zabbix32-server/Makefile (-2 / +1 lines)
Lines 193-200 post-patch: Link Here
193
	@${REINPLACE_CMD} \
193
	@${REINPLACE_CMD} \
194
		-Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
194
		-Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
195
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
195
		${WRKSRC}/src/zabbix_${ZABBIX_BUILD}/Makefile.in
196
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) \
196
	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -delete
197
		-exec ${RM} {} +
198
197
199
post-install:
198
post-install:
200
199
(-)net-p2p/libtorrent/Makefile (-4 / +4 lines)
Lines 51-60 EXTRA_PATCHES+= ${FILESDIR}/extra-clang Link Here
51
post-patch:
51
post-patch:
52
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
52
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
53
	@${FIND} ${WRKSRC} \( -name '*.h' -o -name '*.cc' \) -type f \
53
	@${FIND} ${WRKSRC} \( -name '*.h' -o -name '*.cc' \) -type f \
54
		-exec ${REINPLACE_CMD} -e 's/tr1::/std::/g' {} \; \
54
		-exec ${REINPLACE_CMD} -e 's/tr1::/std::/g' \
55
		-exec ${REINPLACE_CMD} -e 's/std::std::/std::/g' {} \; \
55
				       -e 's/std::std::/std::/g' \
56
		-exec ${REINPLACE_CMD} -e '/namespace tr1/d' {} \; \
56
				       -e '/namespace tr1/d' \
57
		-exec ${REINPLACE_CMD} -e '/include/s,tr1/,,' {} \;
57
				       -e '/include/s,tr1/,,' {} +
58
	@${REINPLACE_CMD} -e 's/\.assign/.fill/' \
58
	@${REINPLACE_CMD} -e 's/\.assign/.fill/' \
59
		${WRKSRC}/src/torrent/utils/extents.h \
59
		${WRKSRC}/src/torrent/utils/extents.h \
60
		${WRKSRC}/src/torrent/utils/log.cc
60
		${WRKSRC}/src/torrent/utils/log.cc
(-)net-p2p/rtorrent/Makefile (-4 / +4 lines)
Lines 49-58 post-patch: Link Here
49
	@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
49
	@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
50
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
50
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
51
	@${FIND} ${WRKSRC} \( -name '*.h' -o -name '*.cc' \) -type f \
51
	@${FIND} ${WRKSRC} \( -name '*.h' -o -name '*.cc' \) -type f \
52
		-exec ${REINPLACE_CMD} -e 's/tr1::/std::/g' {} \; \
52
		-exec ${REINPLACE_CMD} -e 's/tr1::/std::/g' \
53
		-exec ${REINPLACE_CMD} -e 's/std::std::/std::/g' {} \; \
53
				       -e 's/std::std::/std::/g' \
54
		-exec ${REINPLACE_CMD} -e '/namespace tr1/d' {} \; \
54
				       -e '/namespace tr1/d' \
55
		-exec ${REINPLACE_CMD} -e '/include/s,tr1/,,' {} \;
55
				       -e '/include/s,tr1/,,' {} +
56
.endif
56
.endif
57
57
58
post-install-DOCS-on:
58
post-install-DOCS-on:
(-)net/dimes/Makefile (-11 / +6 lines)
Lines 59-75 do-install: Link Here
59
	${INSTALL_DATA} ${WRKSRC}/Classes/Start.class \
59
	${INSTALL_DATA} ${WRKSRC}/Classes/Start.class \
60
	  ${STAGEDIR}${DATADIR}/Classes/Start.class
60
	  ${STAGEDIR}${DATADIR}/Classes/Start.class
61
	cd ${WRKSRC}/Classes/ && \
61
	cd ${WRKSRC}/Classes/ && \
62
	  ${FIND} . -type f -and \( -name "*.jpg" -or -name "*.gif" \
62
	  ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/Classes \
63
	    -or -name "*.dll" -or -name "*.ico" \
63
	    '-iregex .*\.(jpg|gif|dll|ico|zip|txt|properties)'
64
	    -or -name "*.zip"  -or -name "*.GIF" -or -name "*.txt" \
65
	    -or -name "*.properties" \) \
66
	    -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/Classes/{} \;
67
	cd ${WRKSRC}/Classes/Base/bin_linux && \
64
	cd ${WRKSRC}/Classes/Base/bin_linux && \
68
	  ${FIND} . -type f  -exec ${INSTALL_DATA} -m 0555 {} ${STAGEDIR}${DATADIR}/Classes/Base/bin_linux/{} \;
65
	  ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}/Classes/Base/bin_linux
69
	cd ${WRKSRC}/Classes/Base/resources/ && \
66
	cd ${WRKSRC}/Classes/Base/resources/ && \
70
	  ${FIND} . -type f -and \( -name "*.jar" -or -name "*.txt" \
67
	  ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/Classes/Base/resources \
71
	    -or -name "*.keystore" \) \
68
	  '-iregex .*\.(jar|txt|keystore)'
72
	    -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/Classes/Base/resources/{} \;
73
	${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.bin \
69
	${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.bin \
74
	  ${STAGEDIR}${DATADIR}/Classes/Base/resources/layouts.bin
70
	  ${STAGEDIR}${DATADIR}/Classes/Base/resources/layouts.bin
75
	${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.meta \
71
	${INSTALL_DATA} -m 0666 ${WRKSRC}/Classes/Base/resources/layouts.meta \
Lines 90-97 do-install: Link Here
90
	  ${STAGEDIR}${DATADIR}/Classes/JARs/10.jar
86
	  ${STAGEDIR}${DATADIR}/Classes/JARs/10.jar
91
	${INSTALL_DATA} ${WRKSRC}/Classes/JARs/dimesAgent.keystore \
87
	${INSTALL_DATA} ${WRKSRC}/Classes/JARs/dimesAgent.keystore \
92
	  ${STAGEDIR}${DATADIR}/Classes/JARs/dimesAgent.keystore
88
	  ${STAGEDIR}${DATADIR}/Classes/JARs/dimesAgent.keystore
93
	cd ${WRKSRC}/Licences/ &&  ${FIND} . -type f -name "*.txt" \
89
	cd ${WRKSRC}/Licences/ &&  ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/Licences  '-name *\.txt'
94
	  -exec ${INSTALL_MAN} {} ${STAGEDIR}${DATADIR}/Licences/{} \;
95
	${INSTALL_SCRIPT} ${WRKSRC}/scripts_linux/agent.sh ${STAGEDIR}${DATADIR}/scripts_linux/agent.sh
90
	${INSTALL_SCRIPT} ${WRKSRC}/scripts_linux/agent.sh ${STAGEDIR}${DATADIR}/scripts_linux/agent.sh
96
	${INSTALL_SCRIPT} ${WRKSRC}/scripts_linux/colors.sh ${STAGEDIR}${DATADIR}/scripts_linux/colors.sh
91
	${INSTALL_SCRIPT} ${WRKSRC}/scripts_linux/colors.sh ${STAGEDIR}${DATADIR}/scripts_linux/colors.sh
97
	${INSTALL_DATA} ${WRKSRC}/scripts_linux/Makefile ${STAGEDIR}${DATADIR}/scripts_linux/Makefile
92
	${INSTALL_DATA} ${WRKSRC}/scripts_linux/Makefile ${STAGEDIR}${DATADIR}/scripts_linux/Makefile
(-)net/freeradius3/Makefile (-2 / +2 lines)
Lines 376-383 post-patch: Link Here
376
.endif
376
.endif
377
377
378
post-build:
378
post-build:
379
	@${FIND} ${WRKSRC}/build/lib -type f -name '*.so' -exec ${STRIP_CMD} {} \;
379
	@${FIND} ${WRKSRC}/build/lib -type f -name '*.so' -exec ${STRIP_CMD} {} +
380
	@${FIND} ${WRKSRC}/build/bin -type f -exec ${STRIP_CMD} {} \;
380
	@${FIND} ${WRKSRC}/build/bin -type f -exec ${STRIP_CMD} {} +
381
381
382
post-install:
382
post-install:
383
	${MKDIR} ${STAGEDIR}/var/run/radiusd
383
	${MKDIR} ${STAGEDIR}/var/run/radiusd
(-)net/java-beepcore/Makefile (-3 / +1 lines)
Lines 22-30 OPTIONS_DEFINE= DOCS EXAMPLES Link Here
22
22
23
do-install:
23
do-install:
24
	${INSTALL_DATA} ${WRKSRC}/lib/beep*.jar ${STAGEDIR}${JAVAJARDIR}
24
	${INSTALL_DATA} ${WRKSRC}/lib/beep*.jar ${STAGEDIR}${JAVAJARDIR}
25
	(cd ${WRKSRC}/example \
25
	(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
26
	  && ${FIND} -s . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \; \
27
	  && ${FIND} -s . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;)
28
	${INSTALL_DATA} ${WRKSRC}/lib/example.jar ${STAGEDIR}${EXAMPLESDIR}
26
	${INSTALL_DATA} ${WRKSRC}/lib/example.jar ${STAGEDIR}${EXAMPLESDIR}
29
27
30
post-install-DOCS-on:
28
post-install-DOCS-on:
(-)net/jcifs/Makefile (-4 / +2 lines)
Lines 27-36 PORTEXAMPLES= * Link Here
27
27
28
do-install:
28
do-install:
29
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
29
	${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
30
	cd ${WRKSRC}/docs && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
30
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
31
	cd ${WRKSRC}/docs && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
32
	${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}/
31
	${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}/
33
	cd ${WRKSRC}/examples && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \;
32
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
34
	cd ${WRKSRC}/examples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;
35
33
36
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)net/openmq/Makefile (-2 / +2 lines)
Lines 67-74 post-build: Link Here
67
			${MV} imqbrokerd.conf imqbrokerd.conf.sample
67
			${MV} imqbrokerd.conf imqbrokerd.conf.sample
68
pre-install:
68
pre-install:
69
.ifndef IMQ_CLIENT
69
.ifndef IMQ_CLIENT
70
		@cd ${WRKSRC}/dist/mq && ${FIND} bin lib -type f -exec \
70
		@cd ${WRKSRC}/dist/mq && ${FIND} bin lib -type f | \
71
			${ECHO_CMD} "imq/{}" \; > ${PLIST}
71
			${SED} -e 's,^,imq/,' > ${PLIST}
72
		@cd ${WRKSRC}/dist/mq && ${FIND} etc -depth 1 -type f -print | \
72
		@cd ${WRKSRC}/dist/mq && ${FIND} etc -depth 1 -type f -print | \
73
			${SED} -e "\-/-s--/mq/-" >> ${PLIST}
73
			${SED} -e "\-/-s--/mq/-" >> ${PLIST}
74
.else
74
.else
(-)net/p5-Net-Amazon-MechanicalTurk/Makefile (-2 / +1 lines)
Lines 35-41 SHEBANG_FILES= mturk_install.pl Link Here
35
35
36
post-install:
36
post-install:
37
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
37
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
38
	@cd ${WRKSRC}/samples && ${FIND} . -type d -exec ${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/{} \;
38
	@cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
39
	@cd ${WRKSRC}/samples && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;
40
39
41
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)russian/wordpress/Makefile (-1 / +1 lines)
Lines 49-55 pre-install: Link Here
49
do-install:
49
do-install:
50
	@${MKDIR} ${STAGEDIR}${WWWDIR}/
50
	@${MKDIR} ${STAGEDIR}${WWWDIR}/
51
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
51
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
52
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
52
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w {} +
53
53
54
do-install-DOCS-on:
54
do-install-DOCS-on:
55
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/
55
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/
(-)science/colt/Makefile (-2 / +1 lines)
Lines 42-49 PLIST_FILES= %%JAVAJARDIR%%/colt.jar Link Here
42
do-install:
42
do-install:
43
.if ${PORT_OPTIONS:MDOCS}
43
.if ${PORT_OPTIONS:MDOCS}
44
	@${ECHO_MSG} -n ">> Installing documentation in ${STAGEDIR}${DOCSDIR}..."
44
	@${ECHO_MSG} -n ">> Installing documentation in ${STAGEDIR}${DOCSDIR}..."
45
	@cd ${WRKSRC}/doc && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
45
	@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
46
	@cd ${WRKSRC}/doc && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
47
	@${ECHO_MSG} " [DONE]"
46
	@${ECHO_MSG} " [DONE]"
48
.endif
47
.endif
49
48
(-)science/isaac-cfd/Makefile (-1 / +1 lines)
Lines 39-45 pre-configure: Link Here
39
	${WRKSRC}/makefile
39
	${WRKSRC}/makefile
40
	${FIND} ${WRKSRC} -name "*.mk" -exec	\
40
	${FIND} ${WRKSRC} -name "*.mk" -exec	\
41
		${REINPLACE_CMD} -e 's|SRC= $$(HOME)/ISAAC/src|SRC= ${WRKSRC}|; \
41
		${REINPLACE_CMD} -e 's|SRC= $$(HOME)/ISAAC/src|SRC= ${WRKSRC}|; \
42
			s|$$(FFLAGS)|${FFLAGS} -I.|' {} \;
42
			s|$$(FFLAGS)|${FFLAGS} -I.|' {} +
43
43
44
do-install:
44
do-install:
45
	${INSTALL_PROGRAM} ${WRKSRC}/isaac ${STAGEDIR}${PREFIX}/bin/isaac
45
	${INSTALL_PROGRAM} ${WRKSRC}/isaac ${STAGEDIR}${PREFIX}/bin/isaac
(-)science/libkml/Makefile (-1 / +1 lines)
Lines 31-36 SWIG_BUILD_DEPENDS= swig:devel/swig13 Link Here
31
SWIG_CONFIGURE_OFF=	--disable-swig
31
SWIG_CONFIGURE_OFF=	--disable-swig
32
32
33
post-patch:
33
post-patch:
34
	@${FIND} ${WRKSRC} -name Makefile.am -exec ${REINPLACE_CMD} 's|-Werror||; s| -ansi -pedantic||' '{}' \;
34
	@${FIND} ${WRKSRC} -name Makefile.am -exec ${REINPLACE_CMD} 's|-Werror||; s| -ansi -pedantic||' '{}' +
35
35
36
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)security/i2p/Makefile (-2 / +1 lines)
Lines 90-97 do-install: Link Here
90
	@${INSTALL_DATA} ${WRKSRC}/installer/resources/readme/readme*.html ${STAGEDIR}${DOCSDIR}
90
	@${INSTALL_DATA} ${WRKSRC}/installer/resources/readme/readme*.html ${STAGEDIR}${DOCSDIR}
91
# line taken from textproc/xerces-j maintained by hq@FreeBSD.org
91
# line taken from textproc/xerces-j maintained by hq@FreeBSD.org
92
	@cd ${JAVADOC_WRKSRC} && \
92
	@cd ${JAVADOC_WRKSRC} && \
93
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
93
		${COPYTREE_SHARE} . "${STAGEDIR}${DOCSDIR}"
94
		${FIND} * -not -type d -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
95
.endif
94
.endif
96
95
97
.include <bsd.port.post.mk>
96
.include <bsd.port.post.mk>
(-)security/nss/Makefile (-1 / +1 lines)
Lines 89-95 post-patch: Link Here
89
do-install:
89
do-install:
90
	${MKDIR} ${STAGEDIR}${PREFIX}/include/nss/nss ${STAGEDIR}${PREFIX}/lib/nss
90
	${MKDIR} ${STAGEDIR}${PREFIX}/include/nss/nss ${STAGEDIR}${PREFIX}/lib/nss
91
	${FIND} ${DIST}/public/nss -type l \
91
	${FIND} ${DIST}/public/nss -type l \
92
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/include/nss/nss \;
92
		-exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/include/nss/nss +
93
	${INSTALL_LIB} ${BINS}/lib/*.so \
93
	${INSTALL_LIB} ${BINS}/lib/*.so \
94
		${STAGEDIR}${PREFIX}/lib/nss
94
		${STAGEDIR}${PREFIX}/lib/nss
95
	${INSTALL_DATA} ${BINS}/lib/libcrmf.a \
95
	${INSTALL_DATA} ${BINS}/lib/libcrmf.a \
(-)security/phpdeadlock/Makefile (-1 / +1 lines)
Lines 37-43 post-extract: Link Here
37
	@cd ${WRKDIR} && ${MV} "Deadlock v1.01" Deadlock-1.01
37
	@cd ${WRKDIR} && ${MV} "Deadlock v1.01" Deadlock-1.01
38
38
39
post-patch:
39
post-patch:
40
	@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} {} \;
40
	@${FIND} ${WRKSRC} -name \*.orig -delete
41
41
42
do-install:
42
do-install:
43
	@cd ${WRKSRC}/deadlock && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
43
	@cd ${WRKSRC}/deadlock && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
(-)security/snort/Makefile (-1 / +1 lines)
Lines 110-116 post-patch: Link Here
110
.endif
110
.endif
111
111
112
post-build:
112
post-build:
113
	@${FIND} ${WRKSRC}/src -name '*.0' -type f -exec ${STRIP_CMD} {} \;
113
	@${FIND} ${WRKSRC}/src -name '*.0' -type f -exec ${STRIP_CMD} {} +
114
114
115
post-install:
115
post-install:
116
	@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${RULES_DIR} ${STAGEDIR}${LOGS_DIR} \
116
	@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${RULES_DIR} ${STAGEDIR}${LOGS_DIR} \
(-)sysutils/bacula-docs/Makefile (-1 / +1 lines)
Lines 17-22 PORTDOCS= *.pdf Link Here
17
do-install:
17
do-install:
18
	${MKDIR} ${STAGEDIR}${DOCSDIR}
18
	${MKDIR} ${STAGEDIR}${DOCSDIR}
19
	${FIND} ${WRKSRC}/manuals/en \
19
	${FIND} ${WRKSRC}/manuals/en \
20
		-name "*.pdf" -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/ \;
20
		-name "*.pdf" -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR} +
21
21
22
.include <bsd.port.mk>
22
.include <bsd.port.mk>
(-)sysutils/bacula5-docs/Makefile (-1 / +1 lines)
Lines 21-26 PORTDOCS= *.pdf Link Here
21
do-install:
21
do-install:
22
	${MKDIR} ${STAGEDIR}${DOCSDIR}
22
	${MKDIR} ${STAGEDIR}${DOCSDIR}
23
	${FIND} ${WRKSRC}/manuals/en \
23
	${FIND} ${WRKSRC}/manuals/en \
24
		-name "*.pdf" -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/ \;
24
		-name "*.pdf" -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/ +
25
25
26
.include <bsd.port.mk>
26
.include <bsd.port.mk>
(-)sysutils/gosa/Makefile (-1 / +1 lines)
Lines 53-59 post-patch: Link Here
53
.endfor
53
.endfor
54
54
55
	@${MV} -f ${WRKSRC}/contrib/gosa.conf.5 ${WRKSRC}
55
	@${MV} -f ${WRKSRC}/contrib/gosa.conf.5 ${WRKSRC}
56
	@${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} {} +
56
	@${FIND} ${WRKSRC} -type f -name '*.orig' -delete
57
57
58
do-install:
58
do-install:
59
	@${MKDIR} ${STAGEDIR}${WWWDIR}
59
	@${MKDIR} ${STAGEDIR}${WWWDIR}
(-)sysutils/pam_mount/Makefile (-1 / +1 lines)
Lines 32-38 post-patch: Link Here
32
	${REINPLACE_CMD} -e '/dist_security_DATA/s|\.xml$$|.xml.sample|' \
32
	${REINPLACE_CMD} -e '/dist_security_DATA/s|\.xml$$|.xml.sample|' \
33
	   ${WRKSRC}/config/Makefile.am ${WRKSRC}/config/Makefile.in
33
	   ${WRKSRC}/config/Makefile.am ${WRKSRC}/config/Makefile.in
34
	${MV} ${WRKSRC}/config/pam_mount.conf.xml ${WRKSRC}/config/pam_mount.conf.xml.sample
34
	${MV} ${WRKSRC}/config/pam_mount.conf.xml ${WRKSRC}/config/pam_mount.conf.xml.sample
35
	${FIND} ${WRKSRC} -name "*.c" -exec ${REINPLACE_CMD} -e 's|HXformat2_aprintf|HXformat_aprintf|g' {} \;
35
	${FIND} ${WRKSRC} -name "*.c" -exec ${REINPLACE_CMD} -e 's|HXformat2_aprintf|HXformat_aprintf|g' {} +
36
36
37
post-install:
37
post-install:
38
	@${RMDIR} ${STAGEDIR}${PREFIX}/share/xml/pam_mount/dtd
38
	@${RMDIR} ${STAGEDIR}${PREFIX}/share/xml/pam_mount/dtd
(-)sysutils/syslinux/Makefile (-3 / +2 lines)
Lines 28-36 PLIST_FILES= bin/syslinux \ Link Here
28
PORTDATA=	*
28
PORTDATA=	*
29
29
30
pre-patch:
30
pre-patch:
31
	@(cd ${WRKSRC}; 						\
31
	@(cd ${WRKSRC}; ${FIND} . -type f -exec ${GREP} -qe 'elf_i386' {} \; \
32
	${FIND} . -type f -exec ${GREP} -le 'elf_i386' \{\} \; | 	\
32
		-exec ${REINPLACE_CMD} -e 's/elf_i386/elf_i386_fbsd/g;' {} +)
33
		${XARGS} ${REINPLACE_CMD} -e 's/elf_i386/elf_i386_fbsd/g;' )
34
33
35
post-patch:
34
post-patch:
36
	@${REINPLACE_CMD} -e \
35
	@${REINPLACE_CMD} -e \
(-)sysutils/usermin/Makefile (-5 / +5 lines)
Lines 20-26 RUN_DEPENDS= p5-Net-SSLeay>=0:security/p5-Net-SSLeay \ Link Here
20
20
21
NO_ARCH=	yes
21
NO_ARCH=	yes
22
NO_BUILD=	yes
22
NO_BUILD=	yes
23
USES=		cpe perl5
23
USES=		cpe perl5 shebangfix
24
SHEBANG_GLOB=	*.cgi *.pl
24
CPE_VENDOR=	webmin
25
CPE_VENDOR=	webmin
25
USE_RC_SUBR=	usermin
26
USE_RC_SUBR=	usermin
26
SUB_LIST=	PERL=${PERL}
27
SUB_LIST=	PERL=${PERL}
Lines 44-54 post-patch: Link Here
44
.endfor
45
.endfor
45
46
46
	@${FIND} ${WRKSRC} \( -name config-freebsd\* -or -name config \)  \
47
	@${FIND} ${WRKSRC} \( -name config-freebsd\* -or -name config \)  \
47
		-exec ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" {} \; \
48
		-exec ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" \
48
		-exec ${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" {} \;
49
				       -e "s@%%PREFIX%%@${PREFIX}@g" {} +
49
50
50
	@${FIND} ${WRKSRC} \( -name "*.cgi" -or -name "*.pl" -or -name "*.sh" \) -exec \
51
	@${REINPLACE_CMD} -e "s@%%PERL%%@${PERL}@g" ${WRKSRC}/setup.sh
51
		${REINPLACE_CMD} -e "s@%%PERL%%@${PERL}@g; s@#!/usr/bin/perl@#!${PERL}@; s@#!/usr/local/bin/perl@#!${PERL}@" {} \;
52
52
53
	@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" -or -name "*.pyc" \) -delete
53
	@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" -or -name "*.pyc" \) -delete
54
54
(-)sysutils/webmin/Makefile (-5 / +5 lines)
Lines 18-24 RUN_DEPENDS= p5-Net-SSLeay>=0:security/p5-Net-SSLeay \ Link Here
18
		p5-IO-Tty>=0:devel/p5-IO-Tty \
18
		p5-IO-Tty>=0:devel/p5-IO-Tty \
19
		p5-Authen-PAM>=0:security/p5-Authen-PAM
19
		p5-Authen-PAM>=0:security/p5-Authen-PAM
20
20
21
USES=		cpe perl5 python
21
USES=		cpe perl5 python shebangfix
22
SHEBANG_GLOB=	*.cgi *.pl
22
USE_RC_SUBR=	webmin
23
USE_RC_SUBR=	webmin
23
SUB_LIST=	PERL=${PERL}
24
SUB_LIST=	PERL=${PERL}
24
SUB_FILES=	pkg-message
25
SUB_FILES=	pkg-message
Lines 38-48 post-patch: Link Here
38
	@${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" ${WRKSRC}/setup.sh
39
	@${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" ${WRKSRC}/setup.sh
39
40
40
	@${FIND} ${WRKSRC} \( -type f -and \( -name config-freebsd\* -or -name config \) \) \
41
	@${FIND} ${WRKSRC} \( -type f -and \( -name config-freebsd\* -or -name config \) \) \
41
		-exec ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" {} \; \
42
		-exec ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" \
42
		-exec ${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" {} \;
43
				       -e "s@%%PREFIX%%@${PREFIX}@g" {} +
43
44
44
	@${FIND} ${WRKSRC} \( -name "*.cgi" -or -name "*.pl" -or -name "*.sh" \) -exec \
45
	@${REINPLACE_CMD} -e "s@%%PERL%%@${PERL}@g" ${WRKSRC}/setup.sh
45
		${REINPLACE_CMD} -e "s@%%PERL%%@${PERL}@g; s@#!/usr/bin/perl@#!${PERL}@; s@#!/usr/local/bin/perl@#!${PERL}@" {} \;
46
46
47
	@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" -or -name "*.pyc" \) -delete
47
	@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" -or -name "*.pyc" \) -delete
48
48
(-)sysutils/xlogmaster/Makefile (-1 / +1 lines)
Lines 21-27 LDFLAGS+= -L${LOCALBASE}/lib Link Here
21
21
22
post-patch:
22
post-patch:
23
	@${FIND} ${WRKSRC} -name Makefile.in -exec ${REINPLACE_CMD} -E \
23
	@${FIND} ${WRKSRC} -name Makefile.in -exec ${REINPLACE_CMD} -E \
24
	'/(SHELL|cp -f|mkinstalldirs)/ s,XLM_(DB|HOME|LIB),DESTDIR)$$(&,g' {} \;
24
	'/(SHELL|cp -f|mkinstalldirs)/ s,XLM_(DB|HOME|LIB),DESTDIR)$$(&,g' {} +
25
	@${REINPLACE_CMD} -e \
25
	@${REINPLACE_CMD} -e \
26
		's|getopt_long_only|getopt_long|g' ${WRKSRC}/src/xlogmaster.cc
26
		's|getopt_long_only|getopt_long|g' ${WRKSRC}/src/xlogmaster.cc
27
27
(-)textproc/dsssl-docbook-modular/Makefile (-1 / +1 lines)
Lines 31-37 do-build: Link Here
31
31
32
do-install:
32
do-install:
33
	${MKDIR} ${STAGEDIR}${INSTDIR}
33
	${MKDIR} ${STAGEDIR}${INSTDIR}
34
	${FIND} ${WRKDIR} -name '*.orig' -exec ${RM} {} \;
34
	${FIND} ${WRKDIR} -name '*.orig' -delete
35
	cd ${WRKSRC} && ${PAX} -rw . ${STAGEDIR}${INSTDIR}
35
	cd ${WRKSRC} && ${PAX} -rw . ${STAGEDIR}${INSTDIR}
36
36
37
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)textproc/iso-schematron-xslt/Makefile (-2 / +2 lines)
Lines 25-32 PLIST_SUB+= INSTDIR="${INSTDIR}" Link Here
25
25
26
do-install:
26
do-install:
27
	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt1
27
	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt1
28
	( ${FIND} ${WRKDIR}/xslt1 -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt1/ \; )
28
	${FIND} ${WRKDIR}/xslt1 -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt1/ +
29
	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt2
29
	${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt2
30
	( ${FIND} ${WRKDIR}/xslt2 -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt2/ \; )
30
	${FIND} ${WRKDIR}/xslt2 -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt2/ +
31
31
32
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)textproc/jade/Makefile (-2 / +1 lines)
Lines 27-34 CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog Link Here
27
MAKE_JOBS_UNSAFE=	yes
27
MAKE_JOBS_UNSAFE=	yes
28
28
29
pre-install:
29
pre-install:
30
	@${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) \
30
	@${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -delete
31
		-exec ${RM} \{} \;
32
31
33
post-install:
32
post-install:
34
.for i in jade nsgmls sgmlnorm spam spent sx
33
.for i in jade nsgmls sgmlnorm spam spent sx
(-)textproc/jakarta-commons-digester/Makefile (-3 / +1 lines)
Lines 47-55 do-install: Link Here
47
47
48
do-install-DOCS-on:
48
do-install-DOCS-on:
49
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
49
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
50
	@cd ${WRKSRC}/apidocs \
50
	cd ${WRKSRC}/apidocs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
51
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
52
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
53
	${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
51
	${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
54
	@${ECHO_MSG} " [ DONE ]"
52
	@${ECHO_MSG} " [ DONE ]"
55
53
(-)textproc/jaxup/Makefile (-3 / +1 lines)
Lines 78-86 do-install: Link Here
78
.if ${PORT_OPTIONS:MDOCS}
78
.if ${PORT_OPTIONS:MDOCS}
79
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
79
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
80
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
80
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
81
	cd ${WRKSRC}/build/docs \
81
	cd ${WRKSRC}/build/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
82
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
83
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
84
	${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${STAGEDIR}${DOCSDIR}/
82
	${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${STAGEDIR}${DOCSDIR}/
85
	@${ECHO_MSG} " [ DONE ]"
83
	@${ECHO_MSG} " [ DONE ]"
86
.endif
84
.endif
(-)textproc/libtextcat/Makefile (-1 / +1 lines)
Lines 26-32 post-install: Link Here
26
	${MKDIR} ${STAGEDIR}${DATADIR}/LM
26
	${MKDIR} ${STAGEDIR}${DATADIR}/LM
27
	@${ECHO_MSG} "Installing language models provided in Gertjan van Noord's TextCat package"
27
	@${ECHO_MSG} "Installing language models provided in Gertjan van Noord's TextCat package"
28
	(cd ${WRKSRC}/langclass/LM &&		\
28
	(cd ${WRKSRC}/langclass/LM &&		\
29
	${FIND} . -name "*.lm" -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/LM/{}" \;)
29
		${COPYTREE_SHARE} . "${STAGEDIR}${DATADIR}/LM" '-name *\.lm')
30
	${INSTALL_DATA} ${WRKSRC}/langclass/conf.txt "${STAGEDIR}${DATADIR}"
30
	${INSTALL_DATA} ${WRKSRC}/langclass/conf.txt "${STAGEDIR}${DATADIR}"
31
	${MKDIR} ${STAGEDIR}${DOCSDIR}
31
	${MKDIR} ${STAGEDIR}${DOCSDIR}
32
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
32
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
(-)textproc/libtre/Makefile (-4 / +3 lines)
Lines 63-69 pgo-pre-build: Link Here
63
			-e 's,^((C|LD)FLAGS[[:space:]]*=.*)-fprofile-generate,\1,' \
63
			-e 's,^((C|LD)FLAGS[[:space:]]*=.*)-fprofile-generate,\1,' \
64
			-e 's,^(CFLAGS[[:space:]]*=.*)-fprofile-use,\1,' \
64
			-e 's,^(CFLAGS[[:space:]]*=.*)-fprofile-use,\1,' \
65
			-e 's,^((C|LD)FLAGS[[:space:]]*=.*)$$,\1 -fprofile-generate,' \
65
			-e 's,^((C|LD)FLAGS[[:space:]]*=.*)$$,\1 -fprofile-generate,' \
66
			{} \;
66
			{} +
67
67
68
pgo-build:
68
pgo-build:
69
	@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET})
69
	@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET})
Lines 78-84 pgo-post-run: Link Here
78
			-e 's,^((C|LD)FLAGS[[:space:]]*=.*)-fprofile-generate,\1,' \
78
			-e 's,^((C|LD)FLAGS[[:space:]]*=.*)-fprofile-generate,\1,' \
79
			-e 's,^(CFLAGS[[:space:]]*=.*)-fprofile-use,\1,' \
79
			-e 's,^(CFLAGS[[:space:]]*=.*)-fprofile-use,\1,' \
80
			-e 's,^(CFLAGS[[:space:]]*=.*)$$,\1 -fprofile-use,' \
80
			-e 's,^(CFLAGS[[:space:]]*=.*)$$,\1 -fprofile-use,' \
81
			{} \;
81
			{} +
82
	@${REINPLACE_CMD} -E \
82
	@${REINPLACE_CMD} -E \
83
		-e 's,-fprofile-generate,-fprofile-use,g' \
83
		-e 's,-fprofile-generate,-fprofile-use,g' \
84
		${CONFIGURE_WRKSRC}/config.status \
84
		${CONFIGURE_WRKSRC}/config.status \
Lines 93-100 pgo-clean: Link Here
93
	@(cd ${BUILD_WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} clean)
93
	@(cd ${BUILD_WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} clean)
94
. endfor
94
. endfor
95
# Only remove some files from lib to preserve profiling information.
95
# Only remove some files from lib to preserve profiling information.
96
	@${FIND} -E ${BUILD_WRKSRC}/lib -iregex ".*\.(a|la|lai|lo|o|so|so\..*)$$" \
96
	@${FIND} -E ${BUILD_WRKSRC}/lib -iregex ".*\.(a|la|lai|lo|o|so|so\..*)$$" -delete
97
		-exec ${RM} {} \;
98
.endif # if ${PORT_OPTIONS:MPGO}
97
.endif # if ${PORT_OPTIONS:MPGO}
99
98
100
.include <bsd.port.mk>
99
.include <bsd.port.mk>
(-)textproc/mathml-xsd/Makefile (-1 / +1 lines)
Lines 16-22 NO_BUILD= yes Link Here
16
PORTDATA=	*
16
PORTDATA=	*
17
17
18
post-extract:
18
post-extract:
19
	@${FIND} ${WRKSRC} -name "CVS" -type d -exec rm -rf {} +;
19
	@${FIND} ${WRKSRC} -name "CVS" -type d -exec ${RM} -r {} +
20
	@${RM} ${WRKSRC}/content/tokens.xsd.~1.3.~
20
	@${RM} ${WRKSRC}/content/tokens.xsd.~1.3.~
21
21
22
do-install:
22
do-install:
(-)textproc/openjade/Makefile (-1 / +1 lines)
Lines 34-39 post-patch: Link Here
34
	@${REINPLACE_CMD} -e 's|<iostream.h>|<iostream>|' ${WRKSRC}/style/MultiLineInlineNote.cxx
34
	@${REINPLACE_CMD} -e 's|<iostream.h>|<iostream>|' ${WRKSRC}/style/MultiLineInlineNote.cxx
35
35
36
post-install:
36
post-install:
37
	@${FIND} ${WRKSRC}/dsssl -type f -depth 1 -exec ${INSTALL_DATA} {} ${STAGEDIR}/${DATADIR} \;
37
	@${FIND} ${WRKSRC}/dsssl -type f -depth 1 -exec ${INSTALL_DATA} {} ${STAGEDIR}/${DATADIR} +
38
38
39
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)textproc/py-esmre/Makefile (-1 / +1 lines)
Lines 17-22 USES= python:-2.7 Link Here
17
USE_PYTHON=	autoplist distutils
17
USE_PYTHON=	autoplist distutils
18
18
19
post-install:
19
post-install:
20
	@${FIND} ${STAGEDIR}${PREFIX}/lib -name "*.so" -and -exec ${STRIP_CMD} {} \;
20
	@${FIND} ${STAGEDIR}${PREFIX}/lib -name "*.so" -and -exec ${STRIP_CMD} {} +
21
21
22
.include <bsd.port.mk>
22
.include <bsd.port.mk>
(-)textproc/py-xlwriter/Makefile (-1 / +1 lines)
Lines 18-23 PORTEXAMPLES= * Link Here
18
18
19
post-install:
19
post-install:
20
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
20
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
21
	${FIND} ${WRKSRC}/examples -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR} \;
21
	${FIND} ${WRKSRC}/examples -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR} +
22
22
23
.include <bsd.port.mk>
23
.include <bsd.port.mk>
(-)textproc/ruby-xmlparser/Makefile (-1 / +1 lines)
Lines 31-37 MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \ Link Here
31
OPTIONS_DEFINE=	DOCS
31
OPTIONS_DEFINE=	DOCS
32
32
33
post-extract:
33
post-extract:
34
	${FIND} ${WRKSRC} -name CVS -type d -exec ${RM} -r {} ';' -prune
34
	${FIND} ${WRKSRC} -name CVS -type d -exec ${RM} -r {} + -prune
35
35
36
post-patch:
36
post-patch:
37
	${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/lib/wget.rb
37
	${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/lib/wget.rb
(-)textproc/saxon-devel/Makefile (-6 / +2 lines)
Lines 62-75 do-install: Link Here
62
	@${ECHO_MSG} " [ DONE ]"
62
	@${ECHO_MSG} " [ DONE ]"
63
.if ${PORT_OPTIONS:MDOCS}
63
.if ${PORT_OPTIONS:MDOCS}
64
	@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}/..."
64
	@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}/..."
65
	cd ${WRKSRC}/samples/ \
65
	cd ${WRKSRC}/samples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
66
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \; \
67
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;
68
	@${ECHO_MSG} " [ DONE ]"
66
	@${ECHO_MSG} " [ DONE ]"
69
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
67
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
70
	cd ${WRKSRC}/doc/ \
68
	cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
71
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
72
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
73
	@${ECHO_MSG} " [ DONE ]"
69
	@${ECHO_MSG} " [ DONE ]"
74
.endif
70
.endif
75
	@${ECHO_MSG} -n ">> Installing scripts in ${PREFIX}/bin..."
71
	@${ECHO_MSG} -n ">> Installing scripts in ${PREFIX}/bin..."
(-)textproc/xmlada/Makefile (-5 / +5 lines)
Lines 35-50 DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx Link Here
35
DOCS_ALL_TARGET=	gen-docs
35
DOCS_ALL_TARGET=	gen-docs
36
36
37
FIND1=	cd ${WRKSRC}/unicode && ${FIND} -s * \( -name "unicode*.ad[bs]" \
37
FIND1=	cd ${WRKSRC}/unicode && ${FIND} -s * \( -name "unicode*.ad[bs]" \
38
	-a ! -name "unicode.ads" \) -exec ${PRINTF} ', "%s"' {} \;
38
	-a ! -name "unicode.ads" \) -exec ${PRINTF} ', "%s"' {} +
39
FIND2=	cd ${WRKSRC}/input_sources && ${FIND} -s * \( -name "input*.ad[bs]" \
39
FIND2=	cd ${WRKSRC}/input_sources && ${FIND} -s * \( -name "input*.ad[bs]" \
40
	-a ! -name "input_sources.ads" \) -exec ${PRINTF} ', "%s"' {} \;
40
	-a ! -name "input_sources.ads" \) -exec ${PRINTF} ', "%s"' {} +
41
FIND3=	cd ${WRKSRC}/sax && \
41
FIND3=	cd ${WRKSRC}/sax && \
42
	${FIND} -s * -name "sax-*.ad[bs]" -exec ${PRINTF} ', "%s"' {} \;
42
	${FIND} -s * -name "sax-*.ad[bs]" -exec ${PRINTF} ', "%s"' {} +
43
FIND4=	cd ${WRKSRC}/dom && \
43
FIND4=	cd ${WRKSRC}/dom && \
44
	${FIND} -s * -name "dom-*.ad[bs]" -exec ${PRINTF} ', "%s"' {} \;
44
	${FIND} -s * -name "dom-*.ad[bs]" -exec ${PRINTF} ', "%s"' {} +
45
FIND5=	cd ${WRKSRC}/schema && ${FIND} -s * \( -name "schema*.ad[bs]" \
45
FIND5=	cd ${WRKSRC}/schema && ${FIND} -s * \( -name "schema*.ad[bs]" \
46
	-a ! -name "schema.ads" \) -depth 0 -maxdepth 0 \
46
	-a ! -name "schema.ads" \) -depth 0 -maxdepth 0 \
47
	-exec ${PRINTF} ', "%s"' {} \;
47
	-exec ${PRINTF} ', "%s"' {} +
48
48
49
post-patch: dummy-unicode dummy-input_sources dummy-sax dummy-dom dummy-schema
49
post-patch: dummy-unicode dummy-input_sources dummy-sax dummy-dom dummy-schema
50
	@${CP} ${FILESDIR}/Makefile.bsd ${WRKSRC}
50
	@${CP} ${FILESDIR}/Makefile.bsd ${WRKSRC}
(-)textproc/xmlenc/Makefile (-3 / +1 lines)
Lines 40-48 do-install: Link Here
40
40
41
do-install-DOCS-on:
41
do-install-DOCS-on:
42
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
42
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
43
	@cd ${WRKSRC}/build/javadoc/ \
43
	@cd ${WRKSRC}/build/javadoc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
44
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
45
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
46
	@${ECHO_MSG} " [ DONE ]"
44
	@${ECHO_MSG} " [ DONE ]"
47
45
48
.include <bsd.port.post.mk>
46
.include <bsd.port.post.mk>
(-)www/atutor/Makefile (-1 / +1 lines)
Lines 34-40 pre-install: Link Here
34
34
35
do-install:
35
do-install:
36
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
36
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
37
	@${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} a+x {} \;
37
	@${FIND} ${STAGEDIR}${WWWDIR} -type d -exec ${CHMOD} a+x {} +
38
	${INSTALL_DATA} -d ${STAGEDIR}${ATUTDATDIR}
38
	${INSTALL_DATA} -d ${STAGEDIR}${ATUTDATDIR}
39
	@${CHMOD} 777 ${STAGEDIR}${ATUTDATDIR}
39
	@${CHMOD} 777 ${STAGEDIR}${ATUTDATDIR}
40
	@${CHMOD} 666 ${STAGEDIR}${WWWDIR}/${ATUTCONFIG}
40
	@${CHMOD} 666 ${STAGEDIR}${WWWDIR}/${ATUTCONFIG}
(-)www/grails/Makefile (-6 / +2 lines)
Lines 31-39 SUB_FILES= edit-startGrails.sed pkg-message Link Here
31
31
32
do-install:
32
do-install:
33
	@${ECHO_MSG} -n ">> Installing data files in ${DATADIR}..."
33
	@${ECHO_MSG} -n ">> Installing data files in ${DATADIR}..."
34
	@cd ${WRKSRC} \
34
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
35
	  && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; \
36
	  && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
37
	@${ECHO_MSG} " [ DONE ]"
35
	@${ECHO_MSG} " [ DONE ]"
38
	@${ECHO_MSG} -n ">> Installing and symlinking executables..."
36
	@${ECHO_MSG} -n ">> Installing and symlinking executables..."
39
	@${MKDIR} ${STAGEDIR}${DATADIR}/bin
37
	@${MKDIR} ${STAGEDIR}${DATADIR}/bin
Lines 47-55 do-install: Link Here
47
45
48
do-install-DOCS-on:
46
do-install-DOCS-on:
49
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
47
	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
50
	@cd ${WRKSRC}/doc \
48
	@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
51
	  && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
52
	  && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
53
	@${ECHO_MSG} " [ DONE ]"
49
	@${ECHO_MSG} " [ DONE ]"
54
50
55
post-install:
51
post-install:
(-)www/jmeter/Makefile (-7 / +2 lines)
Lines 71-83 do-configure: Link Here
71
BOOTSTRAP_JARS=	avalon-framework xstream commons-io
71
BOOTSTRAP_JARS=	avalon-framework xstream commons-io
72
do-install:
72
do-install:
73
	cd ${WRKSRC} \
73
	cd ${WRKSRC} \
74
	  && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${STAGEDIR}/${DATADIR}/{} \;
74
		&& ${COPYTREE_SHARE} "${DATAFILES}" ${STAGEDIR}/${DATADIR} '-not -name *\.orig' \
75
	cd ${WRKSRC} \
75
		&& ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
76
	  && ${FIND} ${DATAFILES} -type f -not -name '*.orig' -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
77
	cd ${WRKSRC} \
78
	  && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
79
	cd ${WRKSRC} \
80
	  && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
81
	${INSTALL_SCRIPT} ${WRKDIR}/jmeter.sh ${STAGEDIR}${PREFIX}/bin/jmeter
76
	${INSTALL_SCRIPT} ${WRKDIR}/jmeter.sh ${STAGEDIR}${PREFIX}/bin/jmeter
82
77
83
	@${LN} -s ${BOOTSTRAP_JARS:C|.*|${JAVAJARDIR}/&.jar|} ${STAGEDIR}${DATADIR}/lib/
78
	@${LN} -s ${BOOTSTRAP_JARS:C|.*|${JAVAJARDIR}/&.jar|} ${STAGEDIR}${DATADIR}/lib/
(-)www/joomla3/Makefile (-5 / +3 lines)
Lines 34-44 WWWDIR= ${PREFIX}/www/${PORTNAME}${PORTVERSION:R:R} Link Here
34
do-install:
34
do-install:
35
	@${MKDIR} ${STAGEDIR}${WWWDIR}
35
	@${MKDIR} ${STAGEDIR}${WWWDIR}
36
	@(cd ${WRKSRC} && \
36
	@(cd ${WRKSRC} && \
37
		${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${WWWDIR}/{} \;)
37
		${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} \
38
	@(cd ${WRKSRC} && \
38
		'-not ( -name .gitignore -or -name .travis.yml \
39
		${FIND} . \! -type d -and \! \( -name .gitignore -or -name .travis.yml \
40
			-or -name travisci-phpunit.xml -or -name LICENSE.txt \
39
			-or -name travisci-phpunit.xml -or -name LICENSE.txt \
41
			-or -name README.md \) \
40
			-or -name README.md )')
42
			-exec ${INSTALL_DATA} {} ${STAGEDIR}${WWWDIR}/{} \;)
43
41
44
.include <bsd.port.mk>
42
.include <bsd.port.mk>
(-)www/lightsquid/Makefile (-11 / +5 lines)
Lines 52-63 post-patch: Link Here
52
do-install:
52
do-install:
53
	${MKDIR} ${STAGEDIR}/${DATADIR}/lang
53
	${MKDIR} ${STAGEDIR}/${DATADIR}/lang
54
	cd ${WRKSRC}/lang && \
54
	cd ${WRKSRC}/lang && \
55
	${FIND} . -type f -regex '.*\.lng' -exec \
55
		${COPYTREE_SHARE} . ${STAGEDIR}/${DATADIR}/lang '-regex .*\.lng'
56
		${INSTALL_DATA} "{}" "${STAGEDIR}/${DATADIR}/lang/{}" \;
57
	${MKDIR} ${STAGEDIR}/${PREFIX}/libexec/${PORTNAME}
56
	${MKDIR} ${STAGEDIR}/${PREFIX}/libexec/${PORTNAME}
58
	cd ${WRKSRC}/ip2name && \
57
	cd ${WRKSRC}/ip2name && \
59
	${FIND} . -type f -exec \
58
		${COPYTREE_SHARE} . ${STAGEDIR}/${PREFIX}/libexec/${PORTNAME}
60
		${INSTALL_DATA} "{}" "${STAGEDIR}/${PREFIX}/libexec/${PORTNAME}/{}" \;
61
	${MKDIR} ${STAGEDIR}/${ETCDIR}
59
	${MKDIR} ${STAGEDIR}/${ETCDIR}
62
.for i in ${CONFIGS}
60
.for i in ${CONFIGS}
63
	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${ETCDIR}/${i}.sample
61
	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}/${ETCDIR}/${i}.sample
Lines 65-78 do-install: Link Here
65
	${MKDIR} ${STAGEDIR}/${WWWDIR}/report
63
	${MKDIR} ${STAGEDIR}/${WWWDIR}/report
66
	${MKDIR} ${STAGEDIR}/${WWWDIR}/tpl
64
	${MKDIR} ${STAGEDIR}/${WWWDIR}/tpl
67
	cd ${WRKSRC}/tpl && \
65
	cd ${WRKSRC}/tpl && \
68
	${FIND} . -type d ! -empty -exec \
66
		${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/tpl
69
		${MKDIR} "${STAGEDIR}/${WWWDIR}/tpl/{}" \; && \
70
	${FIND} . -type f -exec \
71
		${INSTALL_DATA} "{}" "${STAGEDIR}/${WWWDIR}/tpl/{}" \;
72
	cd ${WRKSRC} && \
67
	cd ${WRKSRC} && \
73
	${FIND} -E . -maxdepth 1 -regex '.*\.(cgi|pl)' -exec \
68
		${INSTALL_SCRIPT} *.cgi *.pl ${STAGEDIR}/${WWWDIR} && \
74
		${INSTALL_SCRIPT} "{}" "${STAGEDIR}/${WWWDIR}/{}" \; && \
69
		${INSTALL_DATA} .htaccess ${STAGEDIR}/${WWWDIR}
75
		${INSTALL_DATA} .htaccess ${STAGEDIR}/${WWWDIR}/
76
70
77
do-install-DOCS-on:
71
do-install-DOCS-on:
78
	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
72
	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
(-)www/mathjax/Makefile (-6 / +1 lines)
Lines 16-29 NO_ARCH= yes Link Here
16
USE_GITHUB=	yes
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	mathjax
17
GH_ACCOUNT=	mathjax
18
18
19
# Changing permissions of 30k files with find -exec (COPYTREE) is way
20
# too slow.
21
do-install:
19
do-install:
22
	${MKDIR} ${STAGEDIR}${WWWDIR}
20
	${MKDIR} ${STAGEDIR}${WWWDIR}
23
	(cd ${WRKSRC} && \
21
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
24
		${FIND} -d . | ${CPIO} -dumpl ${STAGEDIR}${WWWDIR} >/dev/null 2>&1)
25
	${FIND} -d ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
26
	${FIND} -d ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
27
	@(cd ${STAGEDIR}${PREFIX}; ${FIND} -s ${WWWDIR_REL} -not -type d) >> ${TMPPLIST}
22
	@(cd ${STAGEDIR}${PREFIX}; ${FIND} -s ${WWWDIR_REL} -not -type d) >> ${TMPPLIST}
28
23
29
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)www/nginx-devel/Makefile (-1 / +1 lines)
Lines 1283-1289 do-install: Link Here
1283
# Install dynamic modules
1283
# Install dynamic modules
1284
.if !empty(PORT_OPTIONS:MDSO)
1284
.if !empty(PORT_OPTIONS:MDSO)
1285
	(cd ${WRKSRC}/objs/ && ${FIND} . -name '*.so' -maxdepth 1 -type f \
1285
	(cd ${WRKSRC}/objs/ && ${FIND} . -name '*.so' -maxdepth 1 -type f \
1286
		-exec ${INSTALL_PROGRAM} "{}" ${STAGEDIR}${MODULESDIR} \;)
1286
		-exec ${INSTALL_PROGRAM} "{}" ${STAGEDIR}${MODULESDIR} +)
1287
.endif
1287
.endif
1288
1288
1289
.if ${PORT_OPTIONS:MNAXSI}
1289
.if ${PORT_OPTIONS:MNAXSI}
(-)www/nginx/Makefile (-1 / +1 lines)
Lines 1278-1284 do-install: Link Here
1278
# Install dynamic modules
1278
# Install dynamic modules
1279
.if !empty(PORT_OPTIONS:MDSO)
1279
.if !empty(PORT_OPTIONS:MDSO)
1280
	(cd ${WRKSRC}/objs/ && ${FIND} . -name '*.so' -maxdepth 1 -type f \
1280
	(cd ${WRKSRC}/objs/ && ${FIND} . -name '*.so' -maxdepth 1 -type f \
1281
		-exec ${INSTALL_PROGRAM} "{}" ${STAGEDIR}${MODULESDIR} \;)
1281
		-exec ${INSTALL_PROGRAM} "{}" ${STAGEDIR}${MODULESDIR} +)
1282
.endif
1282
.endif
1283
1283
1284
.if ${PORT_OPTIONS:MNAXSI}
1284
.if ${PORT_OPTIONS:MNAXSI}
(-)www/npm/Makefile (-3 / +3 lines)
Lines 83-91 maketar: do-clean Link Here
83
	@${REINPLACE_CMD} -e '1 s|#!/bin/bash|#!${LOCALBASE}/bin/bash|; s|${MAKE}|${GMAKE}|g; s|perl -pi|perl -p|' ${MS_WRKSRC}/${MS_DISTNAME}/scripts/doc-build.sh
83
	@${REINPLACE_CMD} -e '1 s|#!/bin/bash|#!${LOCALBASE}/bin/bash|; s|${MAKE}|${GMAKE}|g; s|perl -pi|perl -p|' ${MS_WRKSRC}/${MS_DISTNAME}/scripts/doc-build.sh
84
	@${GREP} -lr share/man ${MS_WRKSRC}/${MS_DISTNAME}/doc/ ${MS_WRKSRC}/${MS_DISTNAME}/scripts/ | ${XARGS} -I % ${REINPLACE_CMD} 's|share/man|man|g' %
84
	@${GREP} -lr share/man ${MS_WRKSRC}/${MS_DISTNAME}/doc/ ${MS_WRKSRC}/${MS_DISTNAME}/scripts/ | ${XARGS} -I % ${REINPLACE_CMD} 's|share/man|man|g' %
85
	@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${GMAKE} docclean markedclean all html/doc/misc/npm-index.html
85
	@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${GMAKE} docclean markedclean all html/doc/misc/npm-index.html
86
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type d -exec ${CHMOD} 755 '{}' \;
86
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type d -exec ${CHMOD} 755 {} +
87
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -exec ${CHMOD} 644 '{}' \;
87
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -exec ${CHMOD} 644 {} +
88
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -name '*.sh' -exec ${CHMOD} 755 '{}' \;
88
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -name '*.sh' -exec ${CHMOD} 755 {} +
89
	@cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${MS_DISTNAME}.tar.xz ${MS_DISTNAME}/
89
	@cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${MS_DISTNAME}.tar.xz ${MS_DISTNAME}/
90
	@${REINPLACE_CMD} -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile
90
	@${REINPLACE_CMD} -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile
91
	@sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
91
	@sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
(-)www/npm012/Makefile (-3 / +3 lines)
Lines 83-91 maketar: do-clean Link Here
83
	@${REINPLACE_CMD} -e '1 s|#!/bin/bash|#!${LOCALBASE}/bin/bash|; s|${MAKE}|${GMAKE}|g; s|perl -pi|perl -p|' ${MS_WRKSRC}/${MS_DISTNAME}/scripts/doc-build.sh
83
	@${REINPLACE_CMD} -e '1 s|#!/bin/bash|#!${LOCALBASE}/bin/bash|; s|${MAKE}|${GMAKE}|g; s|perl -pi|perl -p|' ${MS_WRKSRC}/${MS_DISTNAME}/scripts/doc-build.sh
84
	@${GREP} -lr share/man ${MS_WRKSRC}/${MS_DISTNAME}/doc/ ${MS_WRKSRC}/${MS_DISTNAME}/scripts/ | ${XARGS} -I % ${REINPLACE_CMD} 's|share/man|man|g' %
84
	@${GREP} -lr share/man ${MS_WRKSRC}/${MS_DISTNAME}/doc/ ${MS_WRKSRC}/${MS_DISTNAME}/scripts/ | ${XARGS} -I % ${REINPLACE_CMD} 's|share/man|man|g' %
85
	@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${GMAKE} docclean markedclean all html/doc/misc/npm-index.html
85
	@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${GMAKE} docclean markedclean all html/doc/misc/npm-index.html
86
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type d -exec ${CHMOD} 755 '{}' \;
86
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type d -exec ${CHMOD} 755 {} +
87
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -exec ${CHMOD} 644 '{}' \;
87
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -exec ${CHMOD} 644 {} +
88
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -name '*.sh' -exec ${CHMOD} 755 '{}' \;
88
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -name '*.sh' -exec ${CHMOD} 755 {} +
89
	@cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${MS_DISTNAME}.tar.xz ${MS_DISTNAME}/
89
	@cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${MS_DISTNAME}.tar.xz ${MS_DISTNAME}/
90
	@${REINPLACE_CMD} -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile
90
	@${REINPLACE_CMD} -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile
91
	@sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
91
	@sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
(-)www/npm2/Makefile (-3 / +3 lines)
Lines 92-100 maketar: do-clean Link Here
92
	@${REINPLACE_CMD} -e '1 s|#!/bin/bash|#!${LOCALBASE}/bin/bash|; s|${MAKE}|${GMAKE}|g; s|perl -pi|perl -p|' ${MS_WRKSRC}/${MS_DISTNAME}/scripts/doc-build.sh
92
	@${REINPLACE_CMD} -e '1 s|#!/bin/bash|#!${LOCALBASE}/bin/bash|; s|${MAKE}|${GMAKE}|g; s|perl -pi|perl -p|' ${MS_WRKSRC}/${MS_DISTNAME}/scripts/doc-build.sh
93
	@${GREP} -lr share/man ${MS_WRKSRC}/${MS_DISTNAME}/doc/ ${MS_WRKSRC}/${MS_DISTNAME}/scripts/ | ${XARGS} -I % ${REINPLACE_CMD} 's|share/man|man|g' %
93
	@${GREP} -lr share/man ${MS_WRKSRC}/${MS_DISTNAME}/doc/ ${MS_WRKSRC}/${MS_DISTNAME}/scripts/ | ${XARGS} -I % ${REINPLACE_CMD} 's|share/man|man|g' %
94
	@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${GMAKE} docclean markedclean all html/doc/misc/npm-index.html
94
	@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${GMAKE} docclean markedclean all html/doc/misc/npm-index.html
95
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type d -exec ${CHMOD} 755 '{}' \;
95
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type d -exec ${CHMOD} 755 {} +
96
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -exec ${CHMOD} 644 '{}' \;
96
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -exec ${CHMOD} 644 {} +
97
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -name '*.sh' -exec ${CHMOD} 755 '{}' \;
97
	@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -name '*.sh' -exec ${CHMOD} 755 {} +
98
	@cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${MS_DISTNAME}.tar.xz ${MS_DISTNAME}/
98
	@cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${MS_DISTNAME}.tar.xz ${MS_DISTNAME}/
99
	@${REINPLACE_CMD} -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile
99
	@${REINPLACE_CMD} -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile
100
	@sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
100
	@sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
(-)www/pebble/Makefile (-6 / +2 lines)
Lines 30-39 PKGMESSAGE= ${WRKSRC}/pkg-message Link Here
30
30
31
OPTIONS_DEFINE=	DOCS
31
OPTIONS_DEFINE=	DOCS
32
32
33
PORTDOCS=	configuration.html credits.html images index.html \
33
PORTDOCS=	.
34
		installation.html license.txt multiblog.html screen.css \
35
		screenshots.html security.html upgrading1x.html \
36
		upgrading2x.html
37
PLIST_FILES=	${WEBAPP_SUBDIR}/${PORTNAME}.war
34
PLIST_FILES=	${WEBAPP_SUBDIR}/${PORTNAME}.war
38
PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
35
PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
39
PEBBLE_CONTEXT=	WEB-INF/applicationContext-pebble.xml
36
PEBBLE_CONTEXT=	WEB-INF/applicationContext-pebble.xml
Lines 48-54 do-install: Link Here
48
	${INSTALL_DATA} ${WRKDIR}/pebble.properties ${STAGEDIR}${PEBBLE_PROPERTIES}.sample
45
	${INSTALL_DATA} ${WRKDIR}/pebble.properties ${STAGEDIR}${PEBBLE_PROPERTIES}.sample
49
	@${MKDIR} ${STAGEDIR}${WEBAPP_DIR}
46
	@${MKDIR} ${STAGEDIR}${WEBAPP_DIR}
50
	${INSTALL_DATA} ${WRKSRC}/pebble.war ${STAGEDIR}${WEBAPP_DIR}/${PORTNAME}.war
47
	${INSTALL_DATA} ${WRKSRC}/pebble.war ${STAGEDIR}${WEBAPP_DIR}/${PORTNAME}.war
51
	cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
48
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
52
	cd ${WRKSRC}/docs && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
53
49
54
.include <bsd.port.mk>
50
.include <bsd.port.mk>
(-)www/phpbb/Makefile (-2 / +1 lines)
Lines 76-82 do-install: Link Here
76
	@cd ${WRKSRC} && ${INSTALL_DATA} ${EXCEPTFILES} ${STAGEDIR}${DATADIR}
76
	@cd ${WRKSRC} && ${INSTALL_DATA} ${EXCEPTFILES} ${STAGEDIR}${DATADIR}
77
	@cd ${WRKSRC}/contrib && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/contrib
77
	@cd ${WRKSRC}/contrib && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/contrib
78
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
78
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
79
	@cd ${WRKSRC}/docs && ${FIND} * -type f -maxdepth 0 \
79
	@cd ${WRKSRC}/docs && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}
80
	  \! -name COPYING -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR} \;
81
80
82
.include <bsd.port.mk>
81
.include <bsd.port.mk>
(-)www/py-tornado/Makefile (-1 / +1 lines)
Lines 27-33 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports_abc>=0.4:devel/py-backports_abc Link Here
27
.endif
27
.endif
28
28
29
post-build:
29
post-build:
30
	@${FIND} ${WRKSRC}/build -name speedups.so -exec ${STRIP_CMD} {} \;
30
	@${FIND} ${WRKSRC}/build -name speedups.so -exec ${STRIP_CMD} {} +
31
31
32
regression-test: build
32
regression-test: build
33
	@cd ${WRKSRC} && ${PYTHON_CMD} -m tornado.test.runtests
33
	@cd ${WRKSRC} && ${PYTHON_CMD} -m tornado.test.runtests
(-)www/sakai/Makefile (-6 / +1 lines)
Lines 36-46 post-extract: Link Here
36
	@${RM} ${WRKSRC}/webapps/*.war
36
	@${RM} ${WRKSRC}/webapps/*.war
37
37
38
do-install:
38
do-install:
39
.for i in ${SYSTEM_DIR}
39
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${SYSTEM_DIR}" ${STAGEDIR}${TOMCAT_DIR}
40
	cd ${WRKSRC}/${i} && ${FIND} . -type d \
41
		-exec ${INSTALL} -d ${STAGEDIR}${TOMCAT_DIR}/${i}/{} \;
42
	cd ${WRKSRC}/${i} && ${FIND} . -type f \
43
		-exec ${INSTALL} -m 644 {} ${STAGEDIR}${TOMCAT_DIR}/${i}/{} \;
44
.endfor
45
40
46
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)www/seahub/Makefile (-2 / +1 lines)
Lines 93-100 do-patch: Link Here
93
	${REINPLACE_CMD} -e 's|##FIX_SITEPACKAGEDIR##|${PREFIX}/${SITEPACKAGEDIR}|' ${WRKSRC}/*.template
93
	${REINPLACE_CMD} -e 's|##FIX_SITEPACKAGEDIR##|${PREFIX}/${SITEPACKAGEDIR}|' ${WRKSRC}/*.template
94
	${REINPLACE_CMD} -e 's|##PYTHON_VERSION##|${PYTHON_VERSION}|g' ${WRKSRC}/*.template
94
	${REINPLACE_CMD} -e 's|##PYTHON_VERSION##|${PYTHON_VERSION}|g' ${WRKSRC}/*.template
95
	${REINPLACE_CMD} -e 's|##FIX_LOCALBASE##|${LOCALBASE}|' ${WRKSRC}/*.template
95
	${REINPLACE_CMD} -e 's|##FIX_LOCALBASE##|${LOCALBASE}|' ${WRKSRC}/*.template
96
	${FIND} ${WRKSRC} -name "*.bak" -exec ${RM} {} \;
96
	${FIND} ${WRKSRC} \( -name "*.bak" -o -name "*.orig" \) -delete
97
	${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} {} \;
98
	(cd ${WRKSRC}; (for file in run-seahub.sh.template \
97
	(cd ${WRKSRC}; (for file in run-seahub.sh.template \
99
		send_user_notifications.sh.template setenv.sh.template; do \
98
		send_user_notifications.sh.template setenv.sh.template; do \
100
		${CP} $$file $${file%%.template}; \
99
		${CP} $$file $${file%%.template}; \
(-)www/sitebar/Makefile (-4 / +1 lines)
Lines 18-27 DATADIR= ${PREFIX}/www/${PORTNAME} Link Here
18
18
19
do-install:
19
do-install:
20
	@${MKDIR} ${STAGEDIR}${DATADIR}
20
	@${MKDIR} ${STAGEDIR}${DATADIR}
21
	@cd ${WRKSRC} && \
21
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
22
		${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \;
23
	@cd ${WRKSRC} && \
24
		${FIND} . ! -type d -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
25
	@${FIND} ${STAGEDIR}${DATADIR} ! -type d | \
22
	@${FIND} ${STAGEDIR}${DATADIR} ! -type d | \
26
		${SED} 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
23
		${SED} 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
27
24
(-)www/trac/Makefile (-1 / +1 lines)
Lines 53-59 post-install: Link Here
53
53
54
post-install-EXAMPLES-on:
54
post-install-EXAMPLES-on:
55
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/sample-plugins
55
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/sample-plugins
56
	${FIND} ${WRKSRC}/contrib -type f -maxdepth 1 -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/ \;
56
	${FIND} ${WRKSRC}/contrib -type f -maxdepth 1 -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/ +
57
	(cd ${WRKSRC}/sample-plugins && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/sample-plugins)
57
	(cd ${WRKSRC}/sample-plugins && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/sample-plugins)
58
58
59
.include <bsd.port.mk>
59
.include <bsd.port.mk>
(-)www/uzbl/Makefile (-1 / +1 lines)
Lines 49-55 post-patch: Link Here
49
		${WRKSRC}/bin/uzbl-tabbed
49
		${WRKSRC}/bin/uzbl-tabbed
50
50
51
post-build:
51
post-build:
52
	@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" \) -exec ${RM} {} \;
52
	@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" \) -delete
53
53
54
post-install:
54
post-install:
55
.if ${PORT_OPTIONS:MDOCS}
55
.if ${PORT_OPTIONS:MDOCS}
(-)www/wordpress/Makefile (-1 / +1 lines)
Lines 47-53 pre-install: Link Here
47
do-install:
47
do-install:
48
	${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
48
	${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
49
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
49
	${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
50
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
50
	${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w {} +
51
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
51
	${MKDIR} ${STAGEDIR}${DOCSDIR}/
52
	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
52
	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
53
53
(-)www/xpi-live_http_headers/Makefile (-1 / +1 lines)
Lines 35-41 USES= dos2unix Link Here
35
DOS2UNIX_REGEX=	.*\.(js|rdf|txt)
35
DOS2UNIX_REGEX=	.*\.(js|rdf|txt)
36
36
37
post-patch:
37
post-patch:
38
	@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} \{} \;
38
	@${FIND} ${WRKSRC} -name \*.orig -delete
39
39
40
.include "../xpi-adblock/Makefile.xpi"
40
.include "../xpi-adblock/Makefile.xpi"
41
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)www/xpi-modify_headers/Makefile (-1 / +1 lines)
Lines 67-73 XPI_DIRS= chrome/content/bindings \ Link Here
67
		defaults
67
		defaults
68
68
69
post-patch:
69
post-patch:
70
		@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} \{} \;
70
		@${FIND} ${WRKSRC} -name \*.orig -delete
71
71
72
.include "../xpi-adblock/Makefile.xpi"
72
.include "../xpi-adblock/Makefile.xpi"
73
.include <bsd.port.mk>
73
.include <bsd.port.mk>
(-)x11-fm/doublecmd/Makefile (-9 / +3 lines)
Lines 363-374 do-install: Link Here
363
	${INSTALL_LIB} ${WRKSRC}/plugins/dsx/DSXLocate/lib/dsxlocate.dsx ${STAGEDIR}${DATADIR}/plugins/dsx/dsxlocate/
363
	${INSTALL_LIB} ${WRKSRC}/plugins/dsx/DSXLocate/lib/dsxlocate.dsx ${STAGEDIR}${DATADIR}/plugins/dsx/dsxlocate/
364
.endif
364
.endif
365
365
366
.for DIRE in language pixmaps sdk
366
	@${MKDIR} ${STAGEDIR}${DATADIR}
367
	@${MKDIR} ${STAGEDIR}${DATADIR}/${DIRE}
367
	@cd ${WRKSRC} && ${COPYTREE_SHARE} "language pixmaps sdk" ${STAGEDIR}${DATADIR}
368
	@cd ${WRKSRC}/${DIRE} && \
369
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/${DIRE}/{}" \; && \
370
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/${DIRE}/{}" \;
371
.endfor
372
368
373
.for FILE in doublecmd.ext.example pixmaps.txt multiarc.ini install/linux/doublecmd.xml
369
.for FILE in doublecmd.ext.example pixmaps.txt multiarc.ini install/linux/doublecmd.xml
374
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
370
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
Lines 384-392 do-install: Link Here
384
380
385
post-install:
381
post-install:
386
.if ${PORT_OPTIONS:MDOCS}
382
.if ${PORT_OPTIONS:MDOCS}
387
	@cd ${DOCSRC} && \
383
	@cd ${DOCSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
388
		${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
389
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
390
.endif
384
.endif
391
385
392
.include <bsd.port.mk>
386
.include <bsd.port.mk>
(-)x11-fonts/moveable-type-fonts/Makefile (-2 / +1 lines)
Lines 27-33 post-extract: Link Here
27
27
28
do-install:
28
do-install:
29
	@${MKDIR} ${STAGEDIR}${FONTSDIR}
29
	@${MKDIR} ${STAGEDIR}${FONTSDIR}
30
	${FIND} ${WRKDIR} -name \*.ttf -exec ${INSTALL_DATA} {} ${STAGEDIR}${FONTSDIR} \;
30
	${FIND} ${WRKDIR} \( -name \*.ttf -o -name \*.otf \) -exec ${INSTALL_DATA} {} ${STAGEDIR}${FONTSDIR} +
31
	${FIND} ${WRKDIR} -name \*.otf -exec ${INSTALL_DATA} {} ${STAGEDIR}${FONTSDIR} \;
32
31
33
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)x11-themes/gtk-equinox-engine/Makefile (-16 / +3 lines)
Lines 26-38 WRKSRC= ${WRKDIR}/equinox-${PORTVERSION} Link Here
26
26
27
DATADIR=	${PREFIX}/share/themes
27
DATADIR=	${PREFIX}/share/themes
28
28
29
SUBDIRS=	"Equinox Evolution" "Equinox Evolution Dawn" \
30
		"Equinox Evolution Dawn" "Equinox Evolution Dusk" \
31
		"Equinox Evolution Light" "Equinox Evolution Midnight" \
32
		"Equinox Evolution Rounded" "Equinox Evolution Squared"
33
EXAMPLES=	"Equinox Evolution.crx" "Equinox Evolution Dawn.crx" \
34
		"Equinox Evolution Dusk.crx" "Equinox Evolution Midnight.crx"
35
36
OPTIONS_DEFINE=	ANIMATION EXAMPLES DOCS
29
OPTIONS_DEFINE=	ANIMATION EXAMPLES DOCS
37
OPTIONS_DEFAULT=	ANIMATION
30
OPTIONS_DEFAULT=	ANIMATION
38
ANIMATION_DESC=	Enable animation support
31
ANIMATION_DESC=	Enable animation support
Lines 41-63 ANIMATION_CONFIGURE_ENABLE= animation Link Here
41
post-patch:
34
post-patch:
42
	@${FIND} ${WRKDIR} -name 'gtkrc' -exec \
35
	@${FIND} ${WRKDIR} -name 'gtkrc' -exec \
43
	    ${REINPLACE_CMD} -e 's!^include "apps/nautilus\.rc"!#&!' {} +
36
	    ${REINPLACE_CMD} -e 's!^include "apps/nautilus\.rc"!#&!' {} +
44
	@${FIND} ${WRKDIR} -type f -name 'gtkrc.bak' -exec ${RM} {} +
37
	@${FIND} ${WRKDIR} -type f -name 'gtkrc.bak' -delete
45
	@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
38
	@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
46
		${WRKSRC}/src/animation.c
39
		${WRKSRC}/src/animation.c
47
40
48
post-install:
41
post-install:
49
	@${MKDIR} ${STAGEDIR}${DATADIR}
42
	@${MKDIR} ${STAGEDIR}${DATADIR}
50
.for i in ${SUBDIRS}
43
	cd ${WRKDIR} && ${COPYTREE_SHARE} "Equinox*/" ${STAGEDIR}${DATADIR}
51
	${CP} -R ${WRKDIR}/${i} ${STAGEDIR}${DATADIR}
52
.endfor
53
	${FIND} ${STAGEDIR}${DATADIR} -type d -exec ${CHMOD} 755 {} +
54
	${FIND} ${STAGEDIR}${DATADIR} -type f -exec ${CHMOD} ${SHAREMODE} {} +
55
44
56
post-install-EXAMPLES-on:
45
post-install-EXAMPLES-on:
57
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
46
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
58
.for i in ${EXAMPLES}
47
	${INSTALL_DATA} ${WRKDIR}/*.crx ${STAGEDIR}${EXAMPLESDIR}
59
	${INSTALL_DATA} ${WRKDIR}/$i ${STAGEDIR}${EXAMPLESDIR}
60
.endfor
61
48
62
post-install-DOCS-on:
49
post-install-DOCS-on:
63
	${MKDIR} ${STAGEDIR}${DOCSDIR}
50
	${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)x11-themes/gtk-equinox-engine/pkg-plist (+18 lines)
Lines 68-73 lib/gtk-2.0/%%GTK2_VERSION%%/engines/libequinox.so Link Here
68
%%DATADIR%%/Equinox Evolution Dawn/README
68
%%DATADIR%%/Equinox Evolution Dawn/README
69
%%DATADIR%%/Equinox Evolution Dawn/index.theme
69
%%DATADIR%%/Equinox Evolution Dawn/index.theme
70
%%DATADIR%%/Equinox Evolution Dawn/ChangeLog
70
%%DATADIR%%/Equinox Evolution Dawn/ChangeLog
71
%%DATADIR%%/Equinox Evolution Dawn Squared/ChangeLog
72
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/button2_inactive.png
73
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/button2_normal.png
74
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/button2_prelight.png
75
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/button2_pressed.png
76
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/button_inactive.png
77
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/button_normal.png
78
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/button_prelight.png
79
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/button_pressed.png
80
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/close.png
81
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/close_inactive.png
82
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/max.png
83
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/max_inactive.png
84
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/menu.png
85
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/menu_inactive.png
86
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/metacity-theme-1.xml
87
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/min.png
88
%%DATADIR%%/Equinox Evolution Dawn Squared/metacity-1/min_inactive.png
71
%%DATADIR%%/Equinox Evolution Dusk/gtk-2.0/apps/globalmenu.rc
89
%%DATADIR%%/Equinox Evolution Dusk/gtk-2.0/apps/globalmenu.rc
72
%%DATADIR%%/Equinox Evolution Dusk/gtk-2.0/apps/softwarecenter.rc
90
%%DATADIR%%/Equinox Evolution Dusk/gtk-2.0/apps/softwarecenter.rc
73
%%DATADIR%%/Equinox Evolution Dusk/gtk-2.0/apps/gnome-system-monitor.rc
91
%%DATADIR%%/Equinox Evolution Dusk/gtk-2.0/apps/gnome-system-monitor.rc
(-)x11-themes/metacity-themes/Makefile.metacity (-6 / +1 lines)
Lines 9-17 REASON= Themes may contain artwork not done by the author. \ Link Here
9
9
10
do-install:
10
do-install:
11
	${MKDIR} ${STAGEDIR}${PREFIX}/share/themes/${PORTNAME}
11
	${MKDIR} ${STAGEDIR}${PREFIX}/share/themes/${PORTNAME}
12
	cd ${WRKSRC} && ${FIND} . -type d ! -empty \
12
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/themes/${PORTNAME} '! -empty'
13
		-exec ${MKDIR} -m 0755 \
14
		${STAGEDIR}${PREFIX}/share/themes/${PORTNAME}/"{}" \;
15
	cd ${WRKSRC} && ${FIND} . -type f \
16
		-exec ${INSTALL_DATA} ${WRKSRC}/"{}" \
17
		${STAGEDIR}${PREFIX}/share/themes/${PORTNAME}/"{}" \;
(-)x11-toolkits/py-wax/Makefile (-4 / +1 lines)
Lines 19-35 WX_COMPS= python:run Link Here
19
19
20
DATADIR=	${PYTHON_SITELIBDIR}
20
DATADIR=	${PYTHON_SITELIBDIR}
21
21
22
FIND_DIRS=	-type d \! -empty
23
FIND_DATA=	-type f
24
FIND_DELETE=	\( -name "*.txt" -and -maxdepth 2 \)
22
FIND_DELETE=	\( -name "*.txt" -and -maxdepth 2 \)
25
OPTIONS_DEFINE=	EXAMPLES
23
OPTIONS_DEFINE=	EXAMPLES
26
24
27
.include <bsd.port.options.mk>
25
.include <bsd.port.options.mk>
28
26
29
do-install:
27
do-install:
30
	@cd ${WRKSRC} && ${FIND} . ${FIND_DIRS} -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \;
31
	@cd ${WRKSRC} && ${FIND} . ${FIND_DELETE} -delete
28
	@cd ${WRKSRC} && ${FIND} . ${FIND_DELETE} -delete
32
	@cd ${WRKSRC} && ${FIND} . ${FIND_DATA} -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
29
	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
33
.if ${PORT_OPTIONS:MEXAMPLES}
30
.if ${PORT_OPTIONS:MEXAMPLES}
34
	${MV} ${STAGEDIR}${DATADIR}/${PORTNAME}/examples ${STAGEDIR}${EXAMPLESDIR}
31
	${MV} ${STAGEDIR}${DATADIR}/${PORTNAME}/examples ${STAGEDIR}${EXAMPLESDIR}
35
.else
32
.else
(-)x11-wm/fvwm-crystal/Makefile (-1 / +1 lines)
Lines 41-47 DOCS_INSTALL_TARGET= install-doc Link Here
41
41
42
post-extract:
42
post-extract:
43
	@cd ${WRKSRC} && ${FIND} . -depth -type d -name .svn \
43
	@cd ${WRKSRC} && ${FIND} . -depth -type d -name .svn \
44
		-exec ${RM} -r {} \;
44
		-exec ${RM} -r {} +
45
45
46
post-patch:
46
post-patch:
47
	@${REINPLACE_CMD} -e 's|cp -r -d|cp -r|; s|cp -d|cp|' \
47
	@${REINPLACE_CMD} -e 's|cp -r -d|cp -r|; s|cp -d|cp|' \
(-)x11/leechcraft/Makefile (-1 / +1 lines)
Lines 414-419 USE_GCC= yes Link Here
414
414
415
post-install:
415
post-install:
416
	@${FIND} -d ${STAGEDIR}${PREFIX}/include/leechcraft \
416
	@${FIND} -d ${STAGEDIR}${PREFIX}/include/leechcraft \
417
		-type d -empty -exec ${RMDIR} {} \;
417
		-type d -empty -exec ${RMDIR} {} +
418
418
419
.include <bsd.port.mk>
419
.include <bsd.port.mk>
(-)x11/xpra/Makefile (-1 / +1 lines)
Lines 100-105 post-install: Link Here
100
	${INSTALL_DATA} ${WRKSRC}/build/etc/xpra/xpra.conf \
100
	${INSTALL_DATA} ${WRKSRC}/build/etc/xpra/xpra.conf \
101
	    ${STAGEDIR}${ETCDIR}/xpra.conf.sample
101
	    ${STAGEDIR}${ETCDIR}/xpra.conf.sample
102
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} -name '*.so' \
102
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} -name '*.so' \
103
	    -exec ${STRIP_CMD} {} \;
103
	    -exec ${STRIP_CMD} {} +
104
104
105
.include <bsd.port.post.mk>
105
.include <bsd.port.post.mk>

Return to bug 213746