freebsd-ports/net/ppxp/Makefile

90 lines
2.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ppxp
# Date created: 24 Dec 1999
# Whom: Norio Suzuki <nosuzuki@e-mail.ne.jp>
# KUNISHIMA Takeo <kunishi@c.oka-pu.ac.jp>
# Taguchi Takeshi <taguchi@tohoku.iij.ad.jp>
#
1999-08-30 10:24:37 -04:00
# $FreeBSD$
#
PORTNAME= ppxp
PORTVERSION= 2001080415
.if defined(WITH_TCLJP)
CATEGORIES+= net tk80
.else
CATEGORIES+= net tk83
.endif
MASTER_SITES= http://www.dsl.gr.jp/~manabe/PPxP/packages/ \
http://www.linet.gr.jp/~manabe/PPxP/packages/ \
http://www.dsl.ics.tut.ac.jp/~manabe/PPxP/packages/
MAINTAINER= nosuzuki@e-mail.ne.jp
(1) Add new variable, XFREE86_VERSION, to specify which version of XFree86 (3 or 4) to depend to when USE_XLIB is set. XFREE86_VERSION defaults to 3 for now, but adventurous users can override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB will add a dependency to x11/XFree86; when it is set to 4, the dependency will be to x11/XFree86-4-libraries. When XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS hacks to avoid messing with XFree86 are turned off. Since XFree86 version 4 includes some software that used to be separate ports, when XFREE86_VERSION=3 the following variables are provided: USE_DGS LIB_DEPENDS on x11/dgs USE_FREETYPE LIB_DEPENDS on print/freetype USE_MESA LIB_DEPENDS on graphics/Mesa3 USE_XPM LIB_DEPENDS on graphics/xpm When XFREE86_VERSION=4, these variables have no effect. The LIB_DEPENDS in the tree for the above four ports have all been converted to the USE_* counterparts. For your information, this is the count of the number of ports: USE_DGS 0 USE_FREETYPE 16 USE_MESA 36 USE_XPM 236 There is a new variable, XAWVER, which is set to 6 when XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also passed to PLIST_SUB so ports that build Xaw based shared libraries can use this variable to substitute the shlib version number. There is also a provision of using a separate mtree file for XFREE86_VERSION=4, but that part is not enabled yet. Reviewed by: the ports list Tested by: make index (XFREE86_VERSION=3 only) (2) Add hebrew to list of valid categories. Submitted by: nbm
2000-08-03 05:28:57 -04:00
LIB_DEPENDS= xforms.0:${PORTSDIR}/x11-toolkits/xforms
.if defined(WITH_TCLJP)
BUILD_DEPENDS= wish8.0jp:${PORTSDIR}/japanese/tk80 \
tclsh8.0jp:${PORTSDIR}/japanese/tcl80
LIB_DEPENDS+= tcl80jp.1:${PORTSDIR}/japanese/tcl80
RUN_DEPENDS= wish8.0jp:${PORTSDIR}/japanese/tk80 \
tclsh8.0jp:${PORTSDIR}/japanese/tcl80
.else
BUILD_DEPENDS= wish8.3:${PORTSDIR}/x11-toolkits/tk83 \
tclsh8.3:${PORTSDIR}/lang/tcl83
LIB_DEPENDS+= tcl83.1:${PORTSDIR}/lang/tcl83
RUN_DEPENDS= wish8.3:${PORTSDIR}/x11-toolkits/tk83 \
tclsh8.3:${PORTSDIR}/lang/tcl83
.endif
(1) Add new variable, XFREE86_VERSION, to specify which version of XFree86 (3 or 4) to depend to when USE_XLIB is set. XFREE86_VERSION defaults to 3 for now, but adventurous users can override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB will add a dependency to x11/XFree86; when it is set to 4, the dependency will be to x11/XFree86-4-libraries. When XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS hacks to avoid messing with XFree86 are turned off. Since XFree86 version 4 includes some software that used to be separate ports, when XFREE86_VERSION=3 the following variables are provided: USE_DGS LIB_DEPENDS on x11/dgs USE_FREETYPE LIB_DEPENDS on print/freetype USE_MESA LIB_DEPENDS on graphics/Mesa3 USE_XPM LIB_DEPENDS on graphics/xpm When XFREE86_VERSION=4, these variables have no effect. The LIB_DEPENDS in the tree for the above four ports have all been converted to the USE_* counterparts. For your information, this is the count of the number of ports: USE_DGS 0 USE_FREETYPE 16 USE_MESA 36 USE_XPM 236 There is a new variable, XAWVER, which is set to 6 when XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also passed to PLIST_SUB so ports that build Xaw based shared libraries can use this variable to substitute the shlib version number. There is also a provision of using a separate mtree file for XFREE86_VERSION=4, but that part is not enabled yet. Reviewed by: the ports list Tested by: make index (XFREE86_VERSION=3 only) (2) Add hebrew to list of valid categories. Submitted by: nbm
2000-08-03 05:28:57 -04:00
USE_XPM= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
.if defined(WITH_TCLJP)
CONFIGURE_ARGS+= --with-tclsh=${PREFIX}/bin/tclsh8.0jp \
--with-wish=${PREFIX}/bin/wish8.0jp \
--with-tcl-includes=${PREFIX}/include/tcl8.0jp \
--with-tcl-config=${PREFIX}/lib/tcl8.0jp/tclConfig.sh \
--with-tk-config=${PREFIX}/lib/tk8.0jp/tkConfig.sh
.else
CONFIGURE_ARGS+= --with-tclsh=${PREFIX}/bin/tclsh8.3 \
--with-wish=${PREFIX}/bin/wish8.3 \
--with-tcl-includes=${PREFIX}/include/tcl8.3 \
--with-tcl-config=${PREFIX}/lib/tcl8.3/tclConfig.sh \
--with-tk-config=${PREFIX}/lib/tk8.3/tkConfig.sh
.endif
MAN1= PPxP.1 plast.1
MAN5= ppxp-files.5
MANLANG= ja
WRKSRC= ${WRKDIR}/ppxp
MAKEFILE= makefile
DOC_C= QuickStart.txt
DOC_ja_JP= QuickStart.txt QuickUsage.txt guide-1.html guide-2.html \
guide-3.html guide-4.html guide-5.html guide-6.html \
guide-7.html guide-8.html guide-9.html guide-10.html \
guide-11.html guide.html Answers.txt Report.txt
post-patch:
@find ${WRKSRC} -name '*.orig' -exec ${RM} -f '{}' ';'
@${PERL} -pi -e 's/^CFLAGS/#$$&/' ${WRKSRC}/configure
post-install:
@${INSTALL_MAN} ${WRKSRC}/doc/ja_JP/PPxP.1 ${PREFIX}/man/${MANLANG}/man1
@${INSTALL_MAN} ${WRKSRC}/doc/ja_JP/plast.1 ${PREFIX}/man/${MANLANG}/man1
@${INSTALL_MAN} ${WRKSRC}/doc/ja_JP/ppxp-files.5 ${PREFIX}/man/${MANLANG}/man5
@${MKDIR} ${PREFIX}/share/doc/ppxp/C
.for file in ${DOC_C}
@${INSTALL_DATA} ${WRKSRC}/doc/C/${file} ${PREFIX}/share/doc/ppxp/C
.endfor
@${MKDIR} ${PREFIX}/share/doc/ppxp/ja
.for file in ${DOC_ja_JP}
@${INSTALL_DATA} ${WRKSRC}/doc/ja_JP/${file} ${PREFIX}/share/doc/ppxp/ja
.endfor
@${MKDIR} ${PREFIX}/share/doc/tkppxp
@${INSTALL_DATA} ${WRKSRC}/console/tcltk/README ${PREFIX}/share/doc/tkppxp
@${MKDIR} ${PREFIX}/share/doc/xppxp
@${INSTALL_DATA} ${WRKSRC}/console/xppxp/README ${PREFIX}/share/doc/xppxp
csh ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>