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

(-)dedit/Makefile (-2 / +3 lines)
Lines 19-24 Link Here
19
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
19
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
20
20
21
USE_X_PREFIX=	yes
21
USE_X_PREFIX=	yes
22
USE_REINPLACE=	yes
22
USE_GNOME=	yes
23
USE_GNOME=	yes
23
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
24
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
25
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
Lines 28-35 Link Here
28
MANLANG=	"" ja
29
MANLANG=	"" ja
29
30
30
pre-patch:
31
pre-patch:
31
	@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
32
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
32
		's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
33
		's|\(\$$(datadir)/\)gnome/|\1|g ; \
33
		 s|dedit.ja.1||'
34
		 s|dedit.ja.1||'
34
35
35
post-install:
36
post-install:
(-)ghex/Makefile (-2 / +3 lines)
Lines 14-19 Link Here
14
MAINTAINER=	gnome@FreeBSD.org
14
MAINTAINER=	gnome@FreeBSD.org
15
15
16
USE_X_PREFIX=	yes
16
USE_X_PREFIX=	yes
17
USE_REINPLACE=	yes
17
USE_GMAKE=	yes
18
USE_GMAKE=	yes
18
USE_GNOMENG=	yes
19
USE_GNOMENG=	yes
19
USE_GNOME=	gnomeprefix gnomehack gnomelibs gnomeprint
20
USE_GNOME=	gnomeprefix gnomehack gnomelibs gnomeprint
Lines 22-28 Link Here
22
		LIBS="-L${LOCALBASE}/lib"
23
		LIBS="-L${LOCALBASE}/lib"
23
24
24
post-patch:
25
post-patch:
25
	@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
26
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
26
		 s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
27
		 s|\(DATADIRNAME=\)lib|\1share|g' ${WRKSRC}/configure
27
28
28
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)gnotepad+/Makefile (-1 / +2 lines)
Lines 20-25 Link Here
20
DOCVERSION=	1.2.0
20
DOCVERSION=	1.2.0
21
21
22
USE_X_PREFIX=	yes
22
USE_X_PREFIX=	yes
23
USE_REINPLACE=	yes
23
USE_XPM=	yes
24
USE_XPM=	yes
24
USE_GNOMENG=	yes
25
USE_GNOMENG=	yes
25
WANT_GNOME=	yes
26
WANT_GNOME=	yes
Lines 33-39 Link Here
33
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
34
35
35
post-patch:
36
post-patch:
36
	@${PERL} -pi.fbsd -e 's|use_gtkhtml=yes|use_gtkhtml=no|g' ${WRKSRC}/configure.in
37
	@${REINPLACE_CMD} -e 's|\(use_gtkhtml=\)yes|\1no|g' ${WRKSRC}/configure.in
37
38
38
.if !defined(NOPORTDOCS)
39
.if !defined(NOPORTDOCS)
39
post-extract:
40
post-extract:
(-)gxedit/Makefile (-1 / +2 lines)
Lines 15-27 Link Here
15
MAINTAINER=	dom@happygiraffe.net
15
MAINTAINER=	dom@happygiraffe.net
16
16
17
USE_X_PREFIX=	yes
17
USE_X_PREFIX=	yes
18
USE_REINPLACE=	yes
18
USE_GNOMENG=	yes
19
USE_GNOMENG=	yes
19
USE_GNOME=	gtk12
20
USE_GNOME=	gtk12
20
21
21
ALL_TARGET=	gxedit
22
ALL_TARGET=	gxedit
22
23
23
post-patch:
24
post-patch:
24
	@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/config.h
25
	@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/config.h
25
26
26
do-install:
27
do-install:
27
	${INSTALL_PROGRAM} ${WRKSRC}/gtk-shell ${PREFIX}/bin
28
	${INSTALL_PROGRAM} ${WRKSRC}/gtk-shell ${PREFIX}/bin
(-)jext/Makefile (-1 / +2 lines)
Lines 19-24 Link Here
19
19
20
WRKSRC=		${WRKDIR}
20
WRKSRC=		${WRKDIR}
21
USE_XLIB=	yes
21
USE_XLIB=	yes
22
USE_REINPLACE=	yes
22
NO_BUILD=	yes
23
NO_BUILD=	yes
23
24
24
JAVAVM?=	${LOCALBASE}/bin/javavm
25
JAVAVM?=	${LOCALBASE}/bin/javavm
Lines 26-32 Link Here
26
INSTSBDR=	${PREFIX}/share/java/jext
27
INSTSBDR=	${PREFIX}/share/java/jext
27
28
28
do-configure:
29
do-configure:
29
	@${PERL} -pi -e 's|%%JAVAVM%%|${JAVAVM}|g ; \
30
	@${REINPLACE_CMD} -e 's|%%JAVAVM%%|${JAVAVM}|g ; \
30
			 s|%%JEXT_HOME%%|${INSTSBDR}|g'	${WRKSRC}/bin/jext
31
			 s|%%JEXT_HOME%%|${INSTSBDR}|g'	${WRKSRC}/bin/jext
31
32
32
do-install:
33
do-install:
(-)manedit/Makefile (-2 / +3 lines)
Lines 15-20 Link Here
15
WRKSRC=		${WRKDIR}/${DISTNAME}/${PORTNAME}
15
WRKSRC=		${WRKDIR}/${DISTNAME}/${PORTNAME}
16
16
17
USE_BZIP2=	yes
17
USE_BZIP2=	yes
18
USE_REINPLACE=	yes
18
USE_X_PREFIX=	yes
19
USE_X_PREFIX=	yes
19
USE_GNOMENG=	yes
20
USE_GNOMENG=	yes
20
USE_GNOME=	gtk12
21
USE_GNOME=	gtk12
Lines 23-29 Link Here
23
MAN1=		manedit.1
24
MAN1=		manedit.1
24
25
25
pre-patch:
26
pre-patch:
26
	@find ${WRKSRC} -name "*.[ch]" | \
27
	@${FIND} ${WRKSRC} -name "*.[ch]" | \
27
		xargs ${PERL} -pi -e 's|malloc\.h|stdlib.h|g'
28
		${XARGS} ${REINPLACE_CMD} -e 's|malloc\.h|stdlib.h|g'
28
29
29
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)muggy/Makefile (-1 / +2 lines)
Lines 21-27 Link Here
21
NO_WRKSUBDIR=	yes
21
NO_WRKSUBDIR=	yes
22
NO_BUILD=	yes
22
NO_BUILD=	yes
23
USE_X_PREFIX=	yes
23
USE_X_PREFIX=	yes
24
SCRIPTS_ENV=	LANG=C LN=${LN} PERL=${PERL} LANGUAGE=${LANGUAGE} VERSION=${TKSTEPVERSION}
24
USE_REINPLACE=	yes
25
SCRIPTS_ENV=	LANG=C LN=${LN} REINPLACE_CMD=${REINPLACE_CMD} LANGUAGE=${LANGUAGE} VERSION=${TKSTEPVERSION}
25
PLIST_SUB=	PIXMAP_PATH=${PIXMAPPATH:S@^${PREFIX}/@@}
26
PLIST_SUB=	PIXMAP_PATH=${PIXMAPPATH:S@^${PREFIX}/@@}
26
27
27
# This port is for both editors/muggy and japanese/muggy.
28
# This port is for both editors/muggy and japanese/muggy.
(-)muggy/scripts/post-install (-6 / +6 lines)
Lines 5-13 Link Here
5
case ${LANGUAGE} in
5
case ${LANGUAGE} in
6
    Japanese)
6
    Japanese)
7
	for f in Muggy.app; do
7
	for f in Muggy.app; do
8
	    ${PERL} -pi -e '
8
	    ${REINPLACE_CMD} -e -E \
9
		s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/
9
		"s/^(exec[[:space:]]+)wishstep[^[:space:]]*([[:space:]]+.*)\$/\1wishstep${VERSION}jp\2/" \
10
		' ${installdir}/bin/${f}
10
		${installdir}/bin/${f}
11
	done
11
	done
12
    ;;
12
    ;;
13
    *)
13
    *)
Lines 22-30 Link Here
22
	    target=${installdir}/defaults/${f}
22
	    target=${installdir}/defaults/${f}
23
	;;
23
	;;
24
    esac
24
    esac
25
    ${PERL} -pi -e '
25
    ${REINPLACE_CMD} -e -E \
26
        s@^([ \t]*set[ \t]+Jlib[ \t]+)"[^"]*"$@$1"$ENV{installdir}/"@;
26
        "s@^([[:space:]]*set[[:space:]]+Jlib[[:space:]]+)\"[^\"]*\"\$@\1\"${installdir}/\"@;" \
27
        ' ${target}
27
        ${target}
28
done
28
done
29
29
30
${LN} -sf ${installdir}/bin/Muggy.app ${PREFIX}/bin
30
${LN} -sf ${installdir}/bin/Muggy.app ${PREFIX}/bin
(-)scite/Makefile (-1 / +2 lines)
Lines 21-26 Link Here
21
WRKSRC=		${WRKDIR}/${PORTNAME}/gtk
21
WRKSRC=		${WRKDIR}/${PORTNAME}/gtk
22
22
23
USE_X_PREFIX=	yes
23
USE_X_PREFIX=	yes
24
USE_REINPLACE=	yes
24
USE_GMAKE=	yes
25
USE_GMAKE=	yes
25
USE_GNOMENG=	yes
26
USE_GNOMENG=	yes
26
USE_GNOME=	gnomehier gtk12
27
USE_GNOME=	gnomehier gtk12
Lines 28-33 Link Here
28
MAKE_ENV=	MKDIR="${MKDIR}"
29
MAKE_ENV=	MKDIR="${MKDIR}"
29
30
30
post-extract:
31
post-extract:
31
	@${PERL} -pi -e  's|\x0d||' ${WRKSRC}/makefile
32
	@${REINPLACE_CMD} -e 's|'"`printf '\r'`"'||' ${WRKSRC}/makefile
32
33
33
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)staroffice5/Makefile (-2 / +3 lines)
Lines 22-27 Link Here
22
NO_CDROM=	'Must be downloaded direct from Sun via www interface'
22
NO_CDROM=	'Must be downloaded direct from Sun via www interface'
23
23
24
USE_LINUX=	yes
24
USE_LINUX=	yes
25
USE_REINPLACE=	yes
25
IS_INTERACTIVE=	yes
26
IS_INTERACTIVE=	yes
26
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
27
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
27
EXTRACT_CMD=	${CAT}
28
EXTRACT_CMD=	${CAT}
Lines 56-62 Link Here
56
	@${GZIP_CMD} -d ${WRKDIR}/applicat.rdb.gz
57
	@${GZIP_CMD} -d ${WRKDIR}/applicat.rdb.gz
57
58
58
post-configure:
59
post-configure:
59
	@${PERL} -pi.orig -e 's|DefaultDestPath = "Office51";|DefaultDestPath = "${PREFIX}/Office51";|' ${WRKSRC}/office51/setup.ins
60
	@${REINPLACE_CMD} -e 's|\(DefaultDestPath = \)"Office51";|\1"${PREFIX}/Office51";|' ${WRKSRC}/office51/setup.ins
60
61
61
do-install:
62
do-install:
62
	@${CP} /compat/linux/etc/ld.so.conf ${TMPDIR}/ld.so.conf.tmp
63
	@${CP} /compat/linux/etc/ld.so.conf ${TMPDIR}/ld.so.conf.tmp
Lines 75-81 Link Here
75
	@${CHMOD} 100755 ${PREFIX}/Office51/lib/libsdb517li.so
76
	@${CHMOD} 100755 ${PREFIX}/Office51/lib/libsdb517li.so
76
	@${PATCH} -s ${PREFIX}/Office51/bin/setup ${FILESDIR}/setup.patch
77
	@${PATCH} -s ${PREFIX}/Office51/bin/setup ${FILESDIR}/setup.patch
77
	@${PATCH} -s ${PREFIX}/Office51/bin/soffice ${FILESDIR}/soffice.patch
78
	@${PATCH} -s ${PREFIX}/Office51/bin/soffice ${FILESDIR}/soffice.patch
78
	@${PERL} -pi -e 's|DefaultDestPath = "${PREFIX}/Office51";|DefaultDestPath = "~/Office51";|' ${PREFIX}/Office51/instdb.ins
79
	@${REINPLACE_CMD} -e 's|\(DefaultDestPath = \)"${PREFIX}/Office51";|\1"~/Office51";|' ${PREFIX}/Office51/instdb.ins
79
80
80
install-user:
81
install-user:
81
	${PREFIX}/Office51/bin/setup
82
	${PREFIX}/Office51/bin/setup
(-)staroffice52/Makefile (-1 / +2 lines)
Lines 38-43 Link Here
38
CD_MOUNTPT=	'/cdrom'
38
CD_MOUNTPT=	'/cdrom'
39
IS_INTERACTIVE=	yes
39
IS_INTERACTIVE=	yes
40
NO_BUILD=	yes
40
NO_BUILD=	yes
41
USE_REINPLACE=	yes
41
DIST_SUBDIR=	staroffice52
42
DIST_SUBDIR=	staroffice52
42
WRKSRC=		${WRKDIR}/office52
43
WRKSRC=		${WRKDIR}/office52
43
TMPDIR=		${WRKDIR}/tmp
44
TMPDIR=		${WRKDIR}/tmp
Lines 148-154 Link Here
148
.endif
149
.endif
149
150
150
post-configure:
151
post-configure:
151
	@${PERL} -pi.orig -e 's|DefaultDestPath = "office52";|DefaultDestPath = "${PREFIX}/office52";|' ${WRKSRC}/setup.ins
152
	@${REINPLACE_CMD} -e 's|\(DefaultDestPath = \)"office52";|\1"${PREFIX}/office52";|' ${WRKSRC}/setup.ins
152
153
153
do-install:
154
do-install:
154
.if !defined(DISPLAY) || ${DISPLAY} == ""
155
.if !defined(DISPLAY) || ${DISPLAY} == ""

Return to bug 48248