summaryrefslogtreecommitdiff
path: root/korean/nh2ps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'korean/nh2ps/Makefile')
-rw-r--r--korean/nh2ps/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/korean/nh2ps/Makefile b/korean/nh2ps/Makefile
index 018fc0c051e7..8975cc1159b8 100644
--- a/korean/nh2ps/Makefile
+++ b/korean/nh2ps/Makefile
@@ -7,13 +7,29 @@
PORTNAME= nh2ps
PORTVERSION= 2.3.1
+PORTREVISION= 1
CATEGORIES= korean print
MASTER_SITES= ftp://ftp.kr.freebsd.org/pub/users/cjh/nh2ps/
MAINTAINER= cjh@FreeBSD.org
+USE_PERL5_BUILD=yes
+
MAN1= nh2ps.1
+.if !defined(NOA4)
+XCFLAGS= -DA4_PAPERSIZE -DWIDTH=8.27 -DHEIGHT=11.64
+.else
+XCFLAGS= -DWIDTH=8.5 -DHEIGHT=11.0
+.endif
+
+MAKE_ENV+= XCFLAGS="${XCFLAGS}"
+
+pre-everything::
+.if !defined(NOA4)
+ @${ECHO_MSG} "Type \"make NOA4=yes\" if you use no A4(letter) size paper."
+.endif
+
post-patch:
@(cd ${WRKSRC}; \
${SED} s@/usr/local/bin/perl@${PERL5}@ mkpsfontmap.pl > mk.pl; \
@@ -21,7 +37,7 @@ post-patch:
${CHMOD} +x mkpsfontmap.pl)
pre-install:
- @(cd ${WRKSRC}; make install.man)
+ @(cd ${WRKSRC}; ${MAKE} PREFIX=${PREFIX} install.man)
post-install:
strip ${PREFIX}/bin/nh2ps