View | Details | Raw Unified | Return to bug 39746
Collapse All | Expand All

(-)/usr/ports/astro/seti_applet/Makefile (-3 / +4 lines)
Lines 21-26 Link Here
21
		intl.2:${PORTSDIR}/devel/gettext
21
		intl.2:${PORTSDIR}/devel/gettext
22
RUN_DEPENDS=	${LOCALBASE}/sbin/setiathome:${PORTSDIR}/astro/setiathome
22
RUN_DEPENDS=	${LOCALBASE}/sbin/setiathome:${PORTSDIR}/astro/setiathome
23
23
24
USE_REINPLACE=	yes
24
USE_X_PREFIX=	yes
25
USE_X_PREFIX=	yes
25
USE_GNOME=	yes
26
USE_GNOME=	yes
26
USE_LIBTOOL=	yes
27
USE_LIBTOOL=	yes
Lines 43-58 Link Here
43
	    patch-seti_applet patch-message
44
	    patch-seti_applet patch-message
44
45
45
patch-configure:
46
patch-configure:
46
	@${PERL} -pi.fbsd -e 's|-lpthread|${PTHREAD_LIBS}|g; \
47
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g;\
47
		s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
48
		s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
48
49
49
patch-makefiles-in:
50
patch-makefiles-in:
50
	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${PERL} -pi.fbsd -e \
51
	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
51
		's|\$\(datadir\)/gnome/|\$\(datadir\)/|g;\
52
		's|\$\(datadir\)/gnome/|\$\(datadir\)/|g;\
52
		 s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
53
		 s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
53
54
54
patch-seti_applet:
55
patch-seti_applet:
55
	@${PERL} -pi.fbsd -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
56
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
56
		${WRKSRC}/src/seti_applet.c
57
		${WRKSRC}/src/seti_applet.c
57
58
58
patch-message:
59
patch-message:
(-)/usr/ports/databases/mysql-gui/Makefile (-1 / +2 lines)
Lines 28-33 Link Here
28
 		fleditor.1:${PORTSDIR}/x11-toolkits/fl_editor \
28
 		fleditor.1:${PORTSDIR}/x11-toolkits/fl_editor \
29
		flvw.1:${PORTSDIR}/x11-toolkits/flvw
29
		flvw.1:${PORTSDIR}/x11-toolkits/flvw
30
30
31
USE_REINPLACE=	yes
31
USE_X_PREFIX=	yes
32
USE_X_PREFIX=	yes
32
USE_MESA=	yes
33
USE_MESA=	yes
33
WRKSRC=		${WRKDIR}/${DISTNAME:S/-/-src-/}
34
WRKSRC=		${WRKDIR}/${DISTNAME:S/-/-src-/}
Lines 57-63 Link Here
57
#
58
#
58
59
59
pre-patch: copy-inc
60
pre-patch: copy-inc
60
	@${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
61
	@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' \
61
		${WRKSRC}/Fl_Help.cc
62
		${WRKSRC}/Fl_Help.cc
62
63
63
copy-inc:
64
copy-inc:
(-)/usr/ports/lang/gforth/Makefile (-1 / +2 lines)
Lines 18-23 Link Here
18
18
19
STRIP=		#none
19
STRIP=		#none
20
20
21
USE_REINPLACE=	yes
21
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
22
USE_GMAKE=	yes
23
USE_GMAKE=	yes
23
ALL_TARGET=	all info
24
ALL_TARGET=	all info
Lines 61-67 Link Here
61
post-patch: patch-makefiles
62
post-patch: patch-makefiles
62
63
63
patch-makefiles:
64
patch-makefiles:
64
	@${PERL} -pi.fbsd -e 's|makeinfo|makeinfo --no-split|g' \
65
	@${REINPLACE_CMD} -e 's|makeinfo|makeinfo --no-split|g' \
65
		${WRKSRC}/Makefile.in
66
		${WRKSRC}/Makefile.in
66
67
67
#
68
#
(-)/usr/ports/misc/findutils/Makefile (-6 / +4 lines)
Lines 17-30 Link Here
17
# Global variables
17
# Global variables
18
#
18
#
19
19
20
USE_REINPLACE=	yes
20
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
22
USE_GMAKE=	yes
21
CONFIGURE_ARGS=	--program-prefix=g # --localstatedir=${LOCALSTATEDIR}
23
CONFIGURE_ARGS=	--program-prefix=g # --localstatedir=${LOCALSTATEDIR}
22
MAKE_ARGS=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
24
MAKE_ARGS=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
23
25
24
USE_GMAKE=	yes
25
# PREFIX isn't honored. force it w/ prefix.
26
MAKE_ARGS+=	prefix=${PREFIX}
27
28
MAN1=		gfind.1 gxargs.1 glocate.1 gupdatedb.1
26
MAN1=		gfind.1 gxargs.1 glocate.1 gupdatedb.1
29
MAN5=		glocatedb.5
27
MAN5=		glocatedb.5
30
28
Lines 45-51 Link Here
45
#
43
#
46
44
47
post-patch:
45
post-patch:
48
	@${PERL} -pi.fbsd -e 's|makeinfo|makeinfo --no-split|g' \
46
	@${REINPLACE_CMD} -e 's|makeinfo|makeinfo --no-split|g' \
49
		${WRKSRC}/doc/Makefile.in
47
		${WRKSRC}/doc/Makefile.in
50
48
51
# Post-configure
49
# Post-configure
Lines 53-59 Link Here
53
51
54
# --localstatedir= isn't handled right now, so, do it manually.
52
# --localstatedir= isn't handled right now, so, do it manually.
55
post-configure:
53
post-configure:
56
	@${PERL} -pi.fbsd -e 's|\$$\(prefix\)/var|${LOCALSTATEDIR}|g' \
54
	@${REINPLACE_CMD} -e 's|\$$\(prefix\)/var|${LOCALSTATEDIR}|g' \
57
		${WRKSRC}/Makefile ${WRKSRC}/locate/Makefile
55
		${WRKSRC}/Makefile ${WRKSRC}/locate/Makefile
58
56
59
# Post-install
57
# Post-install
(-)/usr/ports/misc/sh-utils/Makefile (-5 / +3 lines)
Lines 19-30 Link Here
19
19
20
LIB_DEPENDS=	intl.2:${PORTSDIR}/devel/gettext
20
LIB_DEPENDS=	intl.2:${PORTSDIR}/devel/gettext
21
21
22
USE_REINPLACE=	yes
22
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
23
CONFIGURE_ARGS=	--program-prefix=g
24
25
USE_GMAKE=	yes
24
USE_GMAKE=	yes
26
# PREFIX isn't honored. force it w/ prefix.
25
CONFIGURE_ARGS=	--program-prefix=g
27
MAKE_ARGS=	prefix=${PREFIX}
28
26
29
MAN1=	gbasename.1 gchroot.1 gdate.1 gdirname.1 gecho.1 genv.1 \
27
MAN1=	gbasename.1 gchroot.1 gdate.1 gdirname.1 gecho.1 genv.1 \
30
	gexpr.1 gfalse.1 ggroups.1 ghostid.1 ghostname.1 gid.1 \
28
	gexpr.1 gfalse.1 ggroups.1 ghostid.1 ghostname.1 gid.1 \
Lines 50-56 Link Here
50
48
51
do-patch:
49
do-patch:
52
.if !defined(WITH_SUID)
50
.if !defined(WITH_SUID)
53
	@${PERL} -pi -e "s/u\+s/u\+w/g" ${WRKSRC}/src/Makefile.in
51
	@${REINPLACE_CMD} -e 's/u\+s/u\+w/g' ${WRKSRC}/src/Makefile.in
54
.endif
52
.endif
55
53
56
# Post-install
54
# Post-install
(-)/usr/ports/misc/upclient/Makefile (-1 / +2 lines)
Lines 15-20 Link Here
15
# Global variables
15
# Global variables
16
#
16
#
17
17
18
USE_REINPLACE=	yes
18
ALL_TARGET=	bsd
19
ALL_TARGET=	bsd
19
BUILD_WRKSRC=	${WRKSRC}/src
20
BUILD_WRKSRC=	${WRKSRC}/src
20
21
Lines 34-40 Link Here
34
post-patch: patch-script patch-message
35
post-patch: patch-script patch-message
35
36
36
patch-script:
37
patch-script:
37
	@${PERL} -pi.fbsd -e 's.%%PREFIX%%.${PREFIX}.g' ${WRKSRC}/scripts/upchk
38
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/scripts/upchk
38
39
39
patch-message:
40
patch-message:
40
	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
41
	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
(-)/usr/ports/net/isc-dhcp3/Makefile (-5 / +5 lines)
Lines 8-14 Link Here
8
8
9
PORTNAME=	dhcp
9
PORTNAME=	dhcp
10
PORTVERSION=	3.0.1.r9
10
PORTVERSION=	3.0.1.r9
11
PORTREVISION=	0
12
CATEGORIES=	net
11
CATEGORIES=	net
13
MASTER_SITES=	ftp://ftp.isc.org/isc/%SUBDIR%/ \
12
MASTER_SITES=	ftp://ftp.isc.org/isc/%SUBDIR%/ \
14
		${US_MASTER_SITES} ${JAPAN_MASTER_SITES} \
13
		${US_MASTER_SITES} ${JAPAN_MASTER_SITES} \
Lines 32-37 Link Here
32
# Global variables
31
# Global variables
33
#
32
#
34
33
34
USE_REINPLACE=	yes
35
HAS_CONFIGURE=	yes
35
HAS_CONFIGURE=	yes
36
36
37
MAN1=		omshell.1
37
MAN1=		omshell.1
Lines 124-145 Link Here
124
	    patch-message
124
	    patch-message
125
125
126
patch-scripts:
126
patch-scripts:
127
	@${PERL} -pi.fbsd -e 's|%%PREFIX%%|${PREFIX}|g' \
127
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
128
		${WRKSRC}/client/scripts/freebsd
128
		${WRKSRC}/client/scripts/freebsd
129
129
130
patch-makefile-conf:
130
patch-makefile-conf:
131
	@${PERL} -pi.fbsd -e 's|^DEBUG[ \t]*=|# DEBUG ?=|g' \
131
	@${REINPLACE_CMD} -e 's|^DEBUG[ 	]*=|# DEBUG ?=|g' \
132
		${WRKSRC}/Makefile.conf
132
		${WRKSRC}/Makefile.conf
133
133
134
patch-makefiles-dist:
134
patch-makefiles-dist:
135
.for subdir in ${PATCH_SUBDIRS}
135
.for subdir in ${PATCH_SUBDIRS}
136
	@${PERL} -pi.fbsd -e 's|^CFLAGS[ \t]*=|CFLAGS +=|g' \
136
	@${REINPLACE_CMD} -e 's|^CFLAGS[ 	]*=|CFLAGS +=|g' \
137
		${WRKSRC}/${subdir}/Makefile.dist
137
		${WRKSRC}/${subdir}/Makefile.dist
138
.endfor
138
.endfor
139
139
140
# temporary hack - no patch file needed for this typo.
140
# temporary hack - no patch file needed for this typo.
141
patch-man-pages:
141
patch-man-pages:
142
	@${PERL} -ni.fbsd -e '/^\.Fd$$/ or print;' ${WRKSRC}/dhcpctl/dhcpctl.3
142
	@${REINPLACE_CMD} -e '/^\.Fd$$/d' ${WRKSRC}/dhcpctl/dhcpctl.3
143
143
144
patch-message:
144
patch-message:
145
	@${SED} 's|%%PREFIX%%|${PREFIX}|g;s|%%MAN1PREFIX%%|${MAN1PREFIX}|g' \
145
	@${SED} 's|%%PREFIX%%|${PREFIX}|g;s|%%MAN1PREFIX%%|${MAN1PREFIX}|g' \
(-)/usr/ports/security/op/Makefile (-4 / +5 lines)
Lines 19-24 Link Here
19
# Global variables
19
# Global variables
20
#
20
#
21
21
22
USE_REINPLACE=	yes
22
BINMODE=	4555
23
BINMODE=	4555
23
MAKE_ARGS=	BASE="${PREFIX}" \
24
MAKE_ARGS=	BASE="${PREFIX}" \
24
		OPTS='-Dbsdi -DOP_ACCESS=\"${CONF_DIR}/${CONF_FILE}\"' \
25
		OPTS='-Dbsdi -DOP_ACCESS=\"${CONF_DIR}/${CONF_FILE}\"' \
Lines 57-69 Link Here
57
post-patch: patch-makefile patch-conf-file
58
post-patch: patch-makefile patch-conf-file
58
59
59
patch-makefile:
60
patch-makefile:
60
	@${PERL} -pi.fbsd \
61
	@${REINPLACE_CMD} \
61
		-e 's|(install)|$$1 -c| if (!/:/);s|CFLAGS=|CFLAGS+=|' \
62
		-e '/:/!s|\(install\)|\1 -c|;s|CFLAGS=|CFLAGS+=|' \
62
		${WRKSRC}/Makefile
63
		${WRKSRC}/Makefile
63
64
64
patch-conf-file:
65
patch-conf-file:
65
	@${PERL} -pi.fbsd \
66
	@${REINPLACE_CMD} -E \
66
		-e 's|^|#| if (!/^#|DEFAULT|MAGIC/);s|/usr/ucb:||' \
67
		-e '/^#|DEFAULT|MAGIC/!s|^|#|;s|/usr/ucb:||' \
67
		${WRKSRC}/${CONF_FILE}
68
		${WRKSRC}/${CONF_FILE}
68
69
69
# Post-install
70
# Post-install
(-)/usr/ports/textproc/docbook-to-man/Makefile (-1 / +2 lines)
Lines 35-40 Link Here
35
.endif
35
.endif
36
RUN_DEPENDS+=	${LOCALBASE}/share/sgml/docbook:${PORTSDIR}/textproc/docbook
36
RUN_DEPENDS+=	${LOCALBASE}/share/sgml/docbook:${PORTSDIR}/textproc/docbook
37
37
38
USE_REINPLACE=	yes
38
USE_IMAKE=	yes
39
USE_IMAKE=	yes
39
USE_X_PREFIX=	no
40
USE_X_PREFIX=	no
40
USE_XLIB=	yes
41
USE_XLIB=	yes
Lines 65-71 Link Here
65
post-patch: patch-docbook-to-man
66
post-patch: patch-docbook-to-man
66
67
67
patch-docbook-to-man:
68
patch-docbook-to-man:
68
	@${PERL} -pi.fbsd -e 's|%%PREFIX%%|${PREFIX}|;s|%%NSGMLS%%|${NSGMLS}|' \
69
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|;s|%%NSGMLS%%|${NSGMLS}|' \
69
		${WRKSRC}/cmd/docbook-to-man.sh
70
		${WRKSRC}/cmd/docbook-to-man.sh
70
71
71
.include <bsd.port.post.mk>
72
.include <bsd.port.post.mk>
(-)/usr/ports/textproc/gsed/Makefile (-3 / +2 lines)
Lines 17-26 Link Here
17
# Global variables
17
# Global variables
18
#
18
#
19
19
20
USE_REINPLACE=	yes
20
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
21
USE_GMAKE=	yes
22
USE_GMAKE=	yes
22
# PREFIX isn't honored. force it w/ prefix.
23
MAKE_ARGS=	prefix=${PREFIX}
24
23
25
MAN1=		gsed.1
24
MAN1=		gsed.1
26
25
Lines 39-45 Link Here
39
38
40
patch-makefiles:
39
patch-makefiles:
41
.for subdir in ${PATCH_SUBDIRS}
40
.for subdir in ${PATCH_SUBDIRS}
42
	@${PERL} -pi.fbsd -e 's/s,x,x,/s,^,g,/' ${WRKSRC}/${subdir}/Makefile
41
	@${REINPLACE_CMD} -e 's|s,x,x,|s,^,g,|' ${WRKSRC}/${subdir}/Makefile
43
.endfor
42
.endfor
44
43
45
# Post-install
44
# Post-install

Return to bug 39746