1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/graphics/tgif/Makefile
Dmitry Marakasov 33e3d901d4 Convert most of remaining ports that depend on xorg-libraries to
modular xorg.

- supply corresponding USE_XORG for all imake-using ports that need it
- USE_IMAKE no longer implies USE_XLIB in absence of USE_XORG
- retire USE_X_PREFIX which is not really used anywhere after the
  above change
- a few minor nits like whitespace and SF macro

Tested by:	2 tinderbox runs by pav
Approved by:	portmgr (pav)
2009-06-09 15:33:28 +00:00

72 lines
1.8 KiB
Makefile

# New ports collection makefile for: tgif
# Date created: 30 Jan 1999
# Whom: bmc@WillsCreek.COM
#
# $FreeBSD$
#
PORTNAME= tgif
PORTVERSION= 4.1.45
PORTREVISION= 5
CATEGORIES= graphics
MASTER_SITES= ftp://bourbon.usc.edu/pub/tgif/ \
http://groups.yahoo.com/group/tgif4-announce/files/ \
SF
DISTNAME= ${PORTNAME}-QPL-${PORTVERSION}
MAINTAINER= bmc@clapper.org
COMMENT= An Xlib-based two-dimensional drawing tool and hyper-object browser
RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm
OPTIONS= NLS "Enable native language support" on \
A4SIZE "Set default paper size to A4" off
USE_IMAKE= yes
PORTDOCS= HISTORY README
USE_XORG= x11 xext xt sm ice
MAN1= tgif.1
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
IMAKEDEFINES+= WITH_NLS
PLIST_SUB= NLS=""
.else
PLIST_SUB= NLS="@comment "
.endif
.if defined(WITH_A4SIZE)
IMAKEDEFINES+= WITH_A4SIZE
.endif
EXAMPLES.demo= an-sr-flip-flop.obj launch-demo-1.obj \
fonts.obj launch-demo.obj keys.obj slide-demo.obj example.tex
EXAMPLES.spice= README BZ.mod DN.mod DN.sym MN.mod MN.sym MP.mod MP.sym \
SN.mod SN.sym SP.mod SP.sym capacitor.sym connection.sym \
demo.obj gauge.sym ground.sym in.sym out.sym port.sym \
resistor.0tc.sym resistor.2tc.sym resistor.h.2tc.sym \
resistor.h.sym resistor.sym
post-extract:
${CP} -f ${WRKDIR}/${DISTNAME}/Tgif.tmpl-freebsd \
${WRKSRC}/Tgif.tmpl
( for D in ${IMAKEDEFINES}; do \
${ECHO_CMD} "#define $${D}"; \
done; \
${CAT} ${FILESDIR}/Tgif.tmpl-freebsdports; \
) > ${WRKSRC}/Tgif.tmpl-freebsdports
post-install:
.for D in demo spice
${MKDIR} ${EXAMPLESDIR}/${D}
cd ${WRKSRC}/${D:S/demo//} \
&& ${INSTALL_DATA} ${EXAMPLES.${D}} ${EXAMPLESDIR}/${D}
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>