Makefile revision 0bd37d32
10bd37d32Smrg# $FreeBSD$ 20bd37d32Smrg# This is adapted from the FreeBSD port, installing as "xterm-dev" with 30bd37d32Smrg# separate resource- and manpage files. 40bd37d32Smrg# copy "xterm-${PORTVERSION}.tgz to the port's distfiles directory 50bd37d32Smrg# and "make makesum". 60bd37d32Smrg 70bd37d32SmrgPORTNAME= xterm 80bd37d32SmrgPORTVERSION= 293 90bd37d32SmrgCATEGORIES= x11 100bd37d32SmrgMASTER_SITES= ftp://invisible-island.net/xterm/ \ 110bd37d32Smrg CRITICAL 120bd37d32SmrgPKGNAMESUFFIX= -dev 130bd37d32SmrgEXTRACT_SUFX= .tgz 140bd37d32Smrg 150bd37d32SmrgMAINTAINER= dickey@invisible-island.net 160bd37d32SmrgCOMMENT= Terminal emulator for the X Window System (development) 170bd37d32Smrg 180bd37d32SmrgCONFLICTS= x11iraf-[0-9]* 190bd37d32Smrg 200bd37d32SmrgUSE_XORG= xaw xft 210bd37d32SmrgWANT_GNOME= desktopfileutils 220bd37d32SmrgGNU_CONFIGURE= yes 230bd37d32Smrg 240bd37d32SmrgCONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" 250bd37d32SmrgCONFIGURE_ARGS+= --with-utempter --enable-narrowproto --enable-256-color 260bd37d32Smrg 270bd37d32SmrgCPPFLAGS+= -I${LOCALBASE}/include 280bd37d32Smrg 290bd37d32SmrgOPTIONS_DEFINE= WCHAR LUIT DECTERM PCRE GNOME DABBREV TOOLBAR 300bd37d32Smrg 310bd37d32SmrgTOOLBAR_DESC= Enable support menu/toolbar 320bd37d32SmrgDABBREV_DESC= Enable support for dabbrev-expand 330bd37d32SmrgDECTERM_DESC= Enable DECterm Locator support 340bd37d32SmrgLUIT_DESC= Use LUIT for locale convertion from/to UTF-8 350bd37d32SmrgWCHAR_DESC= Enable wide-character support 360bd37d32Smrg 370bd37d32SmrgPKG_CLASS= XTermDev 380bd37d32Smrg 390bd37d32Smrg.include <bsd.port.options.mk> 400bd37d32Smrg 410bd37d32SmrgCONFIGURE_ARGS+= --program-suffix=${PKGNAMESUFFIX} --with-app-class=${PKG_CLASS} --without-xterm-symlink 420bd37d32Smrg 430bd37d32Smrg.if ${PORT_OPTIONS:MLUIT} 440bd37d32SmrgCONFIGURE_ARGS+= --enable-luit 450bd37d32SmrgBUILD_DEPENDS= luit:${PORTSDIR}/x11/luit 460bd37d32Smrg.endif 470bd37d32Smrg 480bd37d32Smrg.if ${PORT_OPTIONS:MWCHAR} 490bd37d32SmrgCONFIGURE_ARGS+= --enable-wide-chars 500bd37d32Smrg.endif 510bd37d32Smrg 520bd37d32Smrg.if ${PORT_OPTIONS:MDECTERM} 530bd37d32SmrgCONFIGURE_ARGS+= --enable-dec-locator 540bd37d32Smrg.endif 550bd37d32Smrg 560bd37d32Smrg.if ${PORT_OPTIONS:MPCRE} 570bd37d32SmrgCONFIGURE_ARGS+= --with-pcre 580bd37d32SmrgLIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre 590bd37d32Smrg.endif 600bd37d32Smrg 610bd37d32Smrg.if ${PORT_OPTIONS:MDABBREV} 620bd37d32SmrgCONFIGURE_ARGS+= --enable-dabbrev 630bd37d32Smrg.endif 640bd37d32Smrg 650bd37d32Smrg.if ${PORT_OPTIONS:MTOOLBAR} 660bd37d32SmrgCONFIGURE_ARGS+= --enable-toolbar 670bd37d32Smrg.endif 680bd37d32Smrg 690bd37d32Smrg.if ${PORT_OPTIONS:MGNOME} 700bd37d32SmrgUSE_GNOME= desktopfileutils 710bd37d32SmrgPLIST_SUB+= GNOME="" 720bd37d32Smrg.else 730bd37d32SmrgPLIST_SUB+= GNOME="@comment " 740bd37d32Smrg.endif 750bd37d32Smrg 760bd37d32SmrgMAN1= resize${PKGNAMESUFFIX}.1 koi8rxterm${PKGNAMESUFFIX}.1 uxterm${PKGNAMESUFFIX}.1 xterm${PKGNAMESUFFIX}.1 770bd37d32Smrg 780bd37d32Smrg.include <bsd.port.pre.mk> 790bd37d32Smrg 800bd37d32Smrg.if ${OSVERSION} < 900004 810bd37d32SmrgLIB_DEPENDS+= utempter:${PORTSDIR}/sysutils/libutempter 820bd37d32Smrg.endif 830bd37d32Smrg 840bd37d32Smrgpost-install: 850bd37d32Smrg.for f in koi8rxterm resize uxterm xterm 860bd37d32Smrg @${CHMOD} ${BINMODE} ${PREFIX}/bin/${f} 870bd37d32Smrg.endfor 880bd37d32Smrg.if ${PORT_OPTIONS:MGNOME} 890bd37d32Smrg @${MKDIR} ${PREFIX}/share/applications/ 900bd37d32Smrg @${INSTALL_DATA} ${WRKSRC}/xterm.desktop ${PREFIX}/share/applications/ 910bd37d32Smrg @-update-desktop-database 920bd37d32Smrg.endif 930bd37d32Smrg 940bd37d32Smrg.if ${PORT_OPTIONS:MWCHAR} 950bd37d32Smrg @${CAT} ${PKGMESSAGE} 960bd37d32Smrg.endif 970bd37d32Smrg 980bd37d32Smrg.include <bsd.port.post.mk> 99