22c0d8ea20
- add NOA4 build option(A4/letter paper size selection) Submitted by: Jung-uk Kim <jkim@niksun.com>, bento
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# New ports collection makefile for: nh2ps-2.3
|
|
# Date created: 2 Apr 1997
|
|
# Whom: Choi Jun Ho <junker@jazz.snu.ac.kr>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
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; \
|
|
${MV} -f mk.pl mkpsfontmap.pl; \
|
|
${CHMOD} +x mkpsfontmap.pl)
|
|
|
|
pre-install:
|
|
@(cd ${WRKSRC}; ${MAKE} PREFIX=${PREFIX} install.man)
|
|
|
|
post-install:
|
|
strip ${PREFIX}/bin/nh2ps
|
|
@${MKDIR} ${PREFIX}/share/doc/nh2ps
|
|
${INSTALL_DATA} ${WRKSRC}/README.nh2ps ${PREFIX}/share/doc/nh2ps/
|
|
${INSTALL_DATA} ${WRKSRC}/README.font ${PREFIX}/share/doc/nh2ps/
|
|
${INSTALL_DATA} ${WRKSRC}/README.filtering_with_gs \
|
|
${PREFIX}/share/doc/nh2ps/
|
|
|
|
.include <bsd.port.mk>
|