summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-12-02 13:46:50 +0000
committertron <tron@pkgsrc.org>1999-12-02 13:46:50 +0000
commit768a0fb0f7ef50ccc051b2abc9a051e7e3e19e61 (patch)
tree429129199b2649d129d897339e7f71dcaabe5b39 /print
parent687008665ab05f1459ba20ce8f164082992e992c (diff)
downloadpkgsrc-768a0fb0f7ef50ccc051b2abc9a051e7e3e19e61.tar.gz
Use "${MAKE_FLAGS}" instead of a custom "do-build" target.
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript5/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/print/ghostscript5/Makefile b/print/ghostscript5/Makefile
index 633c6c92627..c1610f20ca1 100644
--- a/print/ghostscript5/Makefile
+++ b/print/ghostscript5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 1999/12/02 13:30:28 tron Exp $
+# $NetBSD: Makefile,v 1.42 1999/12/02 13:46:50 tron Exp $
#
DISTNAME= ghostscript-5.50
@@ -23,20 +23,24 @@ BUILD_DEPENDS= ${BUILD_ROOT}/graphics/jpeg/${WRKDIR:T}/jpeg-6b:../../graphics/jp
unzip:../../archivers/unzip
DEPENDS= png-1.0.3:../../graphics/png
+USE_X11= yes
+
.include "../../mk/bsd.prefs.mk"
-USE_X11= yes
DIST_SUBDIR= ${DISTNAME:C/-.*$//}
EXTRACT_ONLY= ${GS_SOURCES} ${HPDJ_DRV}
-WRKSRC= ${WRKDIR}/gs5.50
-MAKEFILE= unix-gcc.mak
ALL_TARGET= std
+MAKEFILE= unix-gcc.mak
MAKE_ENV+= MAKEOBJDIR=. prefix=${PREFIX}
.if ${OPSYS} == "SunOS"
MAKE_ENV+= XLDFLAGS="-Wl,-R${LOCALBASE}/lib -Wl,-R${X11BASE}/lib -Wl,-R${LOCALBASE}/bsd/lib -L${LOCALBASE}/bsd/lib"
.else
MAKE_ENV+= XLDFLAGS="-Wl,-R${LOCALBASE}/lib -Wl,-R${X11BASE}/lib"
.endif
+.if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4")
+MAKE_FLAGS+= -DA4
+.endif
+WRKSRC= ${WRKDIR}/gs5.50
GS_SOURCES= ghostscript-5.50.tar.gz
GS_SOURCES+= ghostscript-5.50gnu.tar.gz
@@ -59,10 +63,6 @@ HPDJ_DRV= hpdj-${HPDJ_VER}.tar.gz
# PostScript source to decode encrypted PDF files
PDF_SEC= pdf_sec.ps
-.if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4")
-PAPERSIZE_DEF= -DA4
-.endif
-
SCRIPT_SUFFIX= .batch
post-extract:
@@ -87,10 +87,6 @@ do-configure:
@${SETENV} WRKSRC=${WRKSRC} PREFIX=${PREFIX} \
${SH} ${SCRIPTDIR}/configure${SCRIPT_SUFFIX}
-do-build:
- cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
- ${MAKE_PROGRAM} ${PAPERSIZE_DEF} ${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET}
-
pre-install:
@${MKDIR} ${PREFIX}/share/ghostscript ${PREFIX}/bin ${PREFIX}/man/man1
(cd ${PREFIX}/share/ghostscript ; \