In preparation of the removal of USE_FREETYPE from bsd.port.mk: remove

USE_FREETYPE from all ports using it

While here trim some headers, and do some conversion to new options framework.
This commit is contained in:
Baptiste Daroussin 2013-04-26 09:23:54 +00:00
parent 336a28bb21
commit 598e3b95e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316593
10 changed files with 42 additions and 69 deletions

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: layouteditor # Created by: Hiroki Sato <hrs@FreeBSD.org>
# Date created: Sun, Apr 29 2007
# Whom: Hiroki Sato <hrs@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= layouteditor PORTNAME= layouteditor
PORTVERSION= 0.0.20110614 PORTVERSION= 0.0.20110614
@ -16,10 +12,11 @@ DISTNAME= LayoutEditor-${PORTVERSION:S,^0.0.,,}-gpl-src
MAINTAINER= hrs@FreeBSD.org MAINTAINER= hrs@FreeBSD.org
COMMENT= IC/MEMS layout editor COMMENT= IC/MEMS layout editor
LIB_DEPENDS= ttf:${PORTSDIR}/print/freetype
USE_QT4= corelib gui network moc_build sql uic_build \ USE_QT4= corelib gui network moc_build sql uic_build \
rcc_build qmake qt3support xml rcc_build qmake qt3support xml
USE_ZIP= yes USE_ZIP= yes
USE_FREETYPE= yes
WRKSRC= ${WRKDIR}/layout WRKSRC= ${WRKDIR}/layout
PLIST_FILES= bin/layout PLIST_FILES= bin/layout

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: bg5ps # Created by: Jing-Tang Keith Jang <keith@FreeBSD.org>
# Date created: 17 June 1998
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= bg5ps PORTNAME= bg5ps
PORTVERSION= 1.3.0p3 PORTVERSION= 1.3.0p3
@ -15,17 +11,20 @@ DISTNAME= bg5ps-1.3.0
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts
USE_FREETYPE= yes LIB_DEPENDS= ttf:${PORTSDIR}/print/freetype
USE_PYTHON= yes USE_PYTHON= yes
PKGMESSAGE= ${WRKDIR}/pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message SUB_FILES= pkg-message
.include <bsd.port.options.mk>
do-install: do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/bg5ps ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/ttf2psm ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/etc/bg5ps.conf.sample ${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/etc/bg5ps.conf.sample
${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${PREFIX}/etc/gb2312-bg5ps.conf.sample ${INSTALL_DATA} ${WRKSRC}/gb2312-bg5ps.conf ${PREFIX}/etc/gb2312-bg5ps.conf.sample
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR} ${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
.endif .endif

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: gltt # Created by: Igor Pokrovsky <tiamat@telegraph.spb.ru>
# Date created: 12 Aug 2002
# Whom: Igor Pokrovsky <tiamat@telegraph.spb.ru>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= gltt PORTNAME= gltt
PORTVERSION= 2.5.2 PORTVERSION= 2.5.2
@ -14,9 +10,10 @@ MASTER_SITES= http://gltt.sourceforge.net/download/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= TrueType fonts rendering using OpenGL COMMENT= TrueType fonts rendering using OpenGL
LIB_DEPENDS= ttf:${PORTSDIR}/print/freetype
USE_AUTOTOOLS= libtool USE_AUTOTOOLS= libtool
USE_GL= gl glut USE_GL= gl glut
USE_FREETYPE= yes
USE_GMAKE= yes USE_GMAKE= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"

View file

@ -36,67 +36,62 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --without-lablgtk CONFIGURE_ARGS+= --without-lablgtk
MAKE_JOBS_UNSAFE= yes MAKE_JOBS_UNSAFE= yes
OPTIONS= PNG "Enable PNG support" on \ OPTIONS_DEFINE= PNG JPEG TIFF XPM GIF FREETYPE GS GTK2 DOCS
JPEG "Enable JPEG support" on \ OPTIONS_DEFAULT= PNG JPEG TIFF XPM GIT FREETYPE GS
TIFF "Enable TIFF support" on \ GS_DESC= PostScript support via Ghostscript
XPM "Enable XPM support" on \
GIF "Enable GIF support" on \
FREETYPE "Enable text rendering via freetype" on \
GS "Enable PostScript support via Ghostscript" on \
GTK2 "Enable LablGTK2 support" off
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if !defined(WITHOUT_PNG) .if ${PORT_OPTIONS:MPNG}
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
CONFIGURE_ARGS+= --with-png CONFIGURE_ARGS+= --with-png
.else .else
CONFIGURE_ARGS+= --without-png CONFIGURE_ARGS+= --without-png
.endif .endif
.if !defined(WITHOUT_JPEG) .if ${PORT_OPTIONS:MJPEG}
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
CONFIGURE_ARGS+= --with-jpeg CONFIGURE_ARGS+= --with-jpeg
.else .else
CONFIGURE_ARGS+= --without-jpeg CONFIGURE_ARGS+= --without-jpeg
.endif .endif
.if !defined(WITHOUT_TIFF) .if ${PORT_OPTIONS:MTIFF}
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
CONFIGURE_ARGS+= --with-tiff CONFIGURE_ARGS+= --with-tiff
.else .else
CONFIGURE_ARGS+= --without-tiff CONFIGURE_ARGS+= --without-tiff
.endif .endif
.if !defined(WITHOUT_XPM) .if ${PORT_OPTIONS:MXPM}
USE_XORG= xpm USE_XORG= xpm
CONFIGURE_ARGS+= --with-xpm CONFIGURE_ARGS+= --with-xpm
.else .else
CONFIGURE_ARGS+= --without-xpm CONFIGURE_ARGS+= --without-xpm
.endif .endif
.if !defined(WITHOUT_GIF) .if ${PORT_OPTIONS:MGIF}
LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib
CONFIGURE_ARGS+= --with-gif CONFIGURE_ARGS+= --with-gif
.else .else
CONFIGURE_ARGS+= --without-gif CONFIGURE_ARGS+= --without-gif
.endif .endif
.if !defined(WITHOUT_FREETYPE) .if ${PORT_OPTIONS:MFREETYPE}
USE_FREETYPE= yes LIB_DEPENDS+= ttf:${PORTSDIR}/print/freetype
CONFIGURE_ARGS+= --with-freetype CONFIGURE_ARGS+= --with-freetype
.else .else
CONFIGURE_ARGS+= --without-freetype CONFIGURE_ARGS+= --without-freetype
.endif .endif
.if defined(WITH_GS) .if ${PORT_OPTIONS:MGS}
USE_GHOSTSCRIPT= yes USE_GHOSTSCRIPT= yes
CONFIGURE_ARGS+= --with-gs CONFIGURE_ARGS+= --with-gs
.else .else
CONFIGURE_ARGS+= --without-gs CONFIGURE_ARGS+= --without-gs
.endif .endif
.if defined(WITH_GTK2) .if ${PORT_OPTIONS:MGTK2}
CONFIGURE_ARGS+= --with-lablgtk2 CONFIGURE_ARGS+= --with-lablgtk2
BUILD_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2 BUILD_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2 RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
@ -112,12 +107,12 @@ GNU_CONFIGURE= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
DOCSFILES= CHANGES README LICENSE DOCSFILES= CHANGES README LICENSE
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
PORTDOCS= ${DOCSFILES} doc PORTDOCS= ${DOCSFILES} doc
.endif .endif
post-install: post-install:
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/doc @${MKDIR} ${DOCSDIR}/doc
@(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DOCSDIR}/doc '-name "*.jpg" -o -name "*.html"') @(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DOCSDIR}/doc '-name "*.jpg" -o -name "*.html"')
@${INSTALL_DATA} ${DOCSFILES:S,^,${WRKSRC}/,g} ${DOCSDIR}/ @${INSTALL_DATA} ${DOCSFILES:S,^,${WRKSRC}/,g} ${DOCSDIR}/

View file

@ -1,13 +1,9 @@
# New ports collection makefile for: py-paint # Created by: Hye-Shik Chang <perky@python.or.kr>
# Date created: 8 July 2001
# Whom: Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= paint PORTNAME= paint
PORTVERSION= 0.3 PORTVERSION= 0.3
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= graphics python CATEGORIES= graphics python
MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/py${PORTNAME}%20${PORTVERSION} MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/py${PORTNAME}%20${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -16,11 +12,11 @@ DISTNAME= pypaint-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Simple and flexible painting adaptor to libart for Python COMMENT= Simple and flexible painting adaptor to libart for Python
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
ttf:${PORTSDIR}/print/freetype
USE_PYTHON= yes USE_PYTHON= yes
USE_PYDISTUTILS= yes USE_PYDISTUTILS= yes
USE_FREETYPE= yes
USE_GNOME= libartlgpl2 USE_GNOME= libartlgpl2
NO_WRKSUBDIR= yes NO_WRKSUBDIR= yes
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libart-2.0 \ CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libart-2.0 \
@ -29,10 +25,11 @@ LDFLAGS+= -L${LOCALBASE}/lib
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
.include <bsd.port.options.mk>
post-patch: post-patch:
@${REINPLACE_CMD} -e "s,art_lgpl,art_lgpl_2," ${WRKSRC}/setup.py @${REINPLACE_CMD} -e "s,art_lgpl,art_lgpl_2," ${WRKSRC}/setup.py
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MEXAMPLES}
post-install: post-install:
@${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${EXAMPLESDIR}
${CP} ${WRKSRC}/test* ${EXAMPLESDIR} ${CP} ${WRKSRC}/test* ${EXAMPLESDIR}

View file

@ -1,5 +1,5 @@
%%PYTHON_SITELIBDIR%%/paint.so %%PYTHON_SITELIBDIR%%/paint.so
%%PORTDOCS%%%%EXAMPLESDIR%%/test_bar.py %%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_bar.py
%%PORTDOCS%%%%EXAMPLESDIR%%/test_paint.py %%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_paint.py
%%PORTDOCS%%%%EXAMPLESDIR%%/testpie.py %%PORTEXAMPLES%%%%EXAMPLESDIR%%/testpie.py
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%

View file

@ -14,7 +14,7 @@ LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png \
mng:${PORTSDIR}/graphics/libmng mng:${PORTSDIR}/graphics/libmng
RUN_DEPENDS+= pnmscale:${PORTSDIR}/graphics/netpbm RUN_DEPENDS+= pnmscale:${PORTSDIR}/graphics/netpbm
USE_IMAKE= yes USE_IMAKE= yese
USE_XORG= x11 xext xmu xt sm ice xi xtst USE_XORG= x11 xext xmu xt sm ice xi xtst
WANT_GNOME= yes WANT_GNOME= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
@ -46,7 +46,7 @@ NO_OPTIONS_SORT=yes
.if ${PORT_OPTIONS:MFREETYPE} .if ${PORT_OPTIONS:MFREETYPE}
# Only freetype 1.x is supported # Only freetype 1.x is supported
USE_FREETYPE= yes LIB_DEPENDS+= ttf:${PORTSDIR}/print/freetype
CONFIGURE_ARGS+= --enable-freetype \ CONFIGURE_ARGS+= --enable-freetype \
--enable-freetype-charset16 --enable-freetype-charset16
.else .else

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: freetype # Created by: jseger@FreeBSD.org
# Date created: January 24, 1998
# Whom: jseger@FreeBSD.org
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= freetype PORTNAME= freetype
PORTVERSION= 1.3.1 PORTVERSION= 1.3.1
@ -25,10 +21,6 @@ CONFIGURE_ARGS= --disable-nls --enable-static --enable-shared
PORTSCOUT= limit:^1\. PORTSCOUT= limit:^1\.
.ifdef USE_FREETYPE
IGNORE= cannot be installed: you have the 'USE_FREETYPE' variable defined either in environment or in make(1) arguments. Please undefine and try again
.endif
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \ @${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
${WRKSRC}/configure ${WRKSRC}/configure

View file

@ -19,9 +19,9 @@ RUN_DEPENDS= zh-arphicttf>=0:${PORTSDIR}/chinese/arphicttf \
BUILD_DEPENDS:= ${RUN_DEPENDS} \ BUILD_DEPENDS:= ${RUN_DEPENDS} \
${LOCALBASE}/share/ttf2pt1/maps/cugb.map:${PORTSDIR}/chinese/ttf2pt1 \ ${LOCALBASE}/share/ttf2pt1/maps/cugb.map:${PORTSDIR}/chinese/ttf2pt1 \
ttf2pt1:${PORTSDIR}/print/ttf2pt1 ttf2pt1:${PORTSDIR}/print/ttf2pt1
LIB_DEPENDS= ttf:${PORTSDIR}/print/freetype
USE_GMAKE= yes USE_GMAKE= yes
USE_FREETYPE= yes
MAN1= bg5conv.1 cef5conv.1 cefconv.1 cefsconv.1 extconv.1 \ MAN1= bg5conv.1 cef5conv.1 cefconv.1 cefsconv.1 extconv.1 \
hbf2gf.1 sjisconv.1 hbf2gf.1 sjisconv.1

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: ttftot42 # Created by: Yukihiro Nakai <nakai@FreeBSD.org>
# Date created: 22 April 2001
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= ttftot42 PORTNAME= ttftot42
PORTVERSION= 0.3.1 PORTVERSION= 0.3.1
@ -14,7 +10,7 @@ MASTER_SITES= http://www.nih.at/ttftot42/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= TrueType to Type42 font converter COMMENT= TrueType to Type42 font converter
USE_FREETYPE= yes LIB_DEPENDS= ttf:${PORTSDIR}/print/freetype
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
PLIST_FILES= bin/ttftot42 PLIST_FILES= bin/ttftot42