aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-09-28 05:00:08 +0800
committerbsam <bsam@FreeBSD.org>2013-09-28 05:00:08 +0800
commitc4e1435af66c57065e6d99787e1bd6800337498a (patch)
tree3fe631a4542054a40d32806488c176346a0d3489 /sysutils
parentf0292f01c4b5caefc8982450e688ccafd7c59111 (diff)
downloadfreebsd-ports-gnome-c4e1435af66c57065e6d99787e1bd6800337498a.tar.gz
freebsd-ports-gnome-c4e1435af66c57065e6d99787e1bd6800337498a.tar.zst
freebsd-ports-gnome-c4e1435af66c57065e6d99787e1bd6800337498a.zip
. support stage;
. remove some cruft.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/mapchan/Makefile15
-rw-r--r--sysutils/mapchan/files/patch-Makefile4
-rw-r--r--sysutils/mapchan/pkg-plist7
3 files changed, 11 insertions, 15 deletions
diff --git a/sysutils/mapchan/Makefile b/sysutils/mapchan/Makefile
index 5de4b1da1edb..06c565d9ef8f 100644
--- a/sysutils/mapchan/Makefile
+++ b/sysutils/mapchan/Makefile
@@ -12,31 +12,24 @@ COMMENT= Transform the input and output of a terminal (SCO Unix alike)
USES= iconv
WRKSRC= ${WRKDIR}/${PORTNAME}
-MAKE_ENV= MAPDIR=${PREFIX}/etc/${PORTNAME}
+MAKE_ENV= STAGEDIR=${STAGEDIR} MAPDIR=${STAGEDIR}${PREFIX}/etc/${PORTNAME}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
-ETCDAT= *.map default.sample
-MAN8= mapchan.8
-PORTDOCS= README
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
post-extract:
@${CP} ${WRKSRC}/doc/mapchan.F ${WRKSRC}/doc/mapchan.8
.include <bsd.port.options.mk>
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_MAN} ${WRKSRC}/doc/mapchan.8 ${MANPREFIX}/man/man8
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/doc/mapchan.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.pre.mk>
post-patch:
- ${FIND} ${WRKSRC} -name '*.orig' -delete
${CP} ${WRKSRC}/examples/default ${WRKSRC}/examples/default.sample
${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" ${WRKSRC}/mapchan.c
.if ${OSVERSION} > 900007
diff --git a/sysutils/mapchan/files/patch-Makefile b/sysutils/mapchan/files/patch-Makefile
index e7380b671c4f..ac7967c711e2 100644
--- a/sysutils/mapchan/files/patch-Makefile
+++ b/sysutils/mapchan/files/patch-Makefile
@@ -15,8 +15,8 @@
-BINDIR ?= $(DESTDIR)/bin
-MAPDIR ?= $(DESTDIR)/etc/mapchan
-LDFLAGS ?= -s
-+BINDIR?=$(PREFIX)/bin
-+MAPDIR?=$(PREFIX)/mapchan
++BINDIR?=${STAGEDIR}$(PREFIX)/bin
++MAPDIR?=${STAGEDIR}$(PREFIX)/mapchan
+LDFLAGS+=-s -lutil
LOADLIBES = -lutil
#--------------------------------------------------------------
diff --git a/sysutils/mapchan/pkg-plist b/sysutils/mapchan/pkg-plist
index 15a7efc602f8..b86be6d992d4 100644
--- a/sysutils/mapchan/pkg-plist
+++ b/sysutils/mapchan/pkg-plist
@@ -2,14 +2,17 @@ bin/mapchan
etc/mapchan/altkoi.map
@unexec if cmp -s %D/etc/mapchan/default %D/etc/mapchan/default.sample; then rm -f %D/etc/mapchan/default; fi
etc/mapchan/default.sample
-etc/mapchan/dos2koi.map
etc/mapchan/dos2koi-kbd.map
+etc/mapchan/dos2koi.map
etc/mapchan/k180.map
etc/mapchan/koi2win.map
etc/mapchan/koiualt.map
etc/mapchan/koiumain.map
etc/mapchan/msm.map
-etc/mapchan/trivial.map
etc/mapchan/sm7238.map
+etc/mapchan/trivial.map
etc/mapchan/win2koi.map
+man/man8/mapchan.8.gz
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
@dirrmtry etc/mapchan