aboutsummaryrefslogtreecommitdiff
path: root/graphics/pstoedit/Makefile
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2005-08-30 03:05:40 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2005-08-30 03:05:40 +0000
commitd3997839a5817883b2834ca1f97ee62a8aa4ba22 (patch)
tree7ac4509e26c51f2f09958cf1d0053b447248a5b0 /graphics/pstoedit/Makefile
parent51cf6d4c0083fe0c6f8e3a34342eb2d041644f39 (diff)
downloadports-d3997839a5817883b2834ca1f97ee62a8aa4ba22.tar.gz
ports-d3997839a5817883b2834ca1f97ee62a8aa4ba22.zip
Notes
Diffstat (limited to 'graphics/pstoedit/Makefile')
-rw-r--r--graphics/pstoedit/Makefile70
1 files changed, 53 insertions, 17 deletions
diff --git a/graphics/pstoedit/Makefile b/graphics/pstoedit/Makefile
index 2d5a44fdc3df..7e50ffaf5f4a 100644
--- a/graphics/pstoedit/Makefile
+++ b/graphics/pstoedit/Makefile
@@ -6,26 +6,24 @@
#
PORTNAME= pstoedit
-PORTVERSION= 3.33
-PORTREVISION= 4
+PORTVERSION= 3.41
CATEGORIES= graphics print
-MASTER_SITES= http://home.t-online.de/home/helga.glunz/wglunz/pstoedit/
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Convert PostScript to other vector graphic formats
-USE_GHOSTSCRIPT=yes
+OPTIONS= IMAGEMAGICK "Enable magick++ interface" on \
+ EMF "Enable emf interface" on \
+ MING "Enable swf interface" on \
+ PLOTUTILS "Enable libplot interface" on
-LIB_DEPENDS= Magick++.8:${PORTSDIR}/graphics/ImageMagick \
- ming.3:${PORTSDIR}/graphics/ming \
- plotter.4:${PORTSDIR}/graphics/plotutils \
- EMF.1:${PORTSDIR}/graphics/libemf
-
-USE_GNOME= gnometarget pkgconfig
-USE_LIBTOOL_VER=15
+USE_GNOME= gnomehack gnometarget pkgconfig
+USE_GHOSTSCRIPT= yes
USE_REINPLACE= yes
+USE_LIBTOOL_VER= 15
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_ARGS+= --with-libemf-include=${LOCALBASE}/include/libEMF
INSTALLS_SHLIB= yes
MAN1= pstoedit.1
@@ -34,6 +32,45 @@ CPPFLAGS= -I${LOCALBASE}/include/ming -I${LOCALBASE}/include \
-I${X11BASE}/include
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500035
+CFLAGS+= -DHAVESTL -DHAVETYPENAME -DUSE_NEWSTRSTREAM
+.endif
+
+.if defined(WITHOUT_IMAGEMAGICK)
+CONFIGURE_ARGS+= --without-magick
+PLIST_SUB+= IMAGEMAGICK="@comment "
+.else
+LIB_DEPENDS+= Magick++.8:${PORTSDIR}/graphics/ImageMagick
+PLIST_SUB+= IMAGEMAGICK=""
+.endif
+
+.if defined(WITHOUT_EMF)
+CONFIGURE_ARGS+= --without-emf
+PLIST_SUB+= EMF="@comment "
+.else
+LIB_DEPENDS+= EMF.1:${PORTSDIR}/graphics/libemf
+CONFIGURE_ARGS+= --with-libemf-include=${LOCALBASE}/include/libEMF
+PLIST_SUB+= EMF=""
+.endif
+
+.if defined(WITHOUT_MING)
+CONFIGURE_ARGS+= --without-swf
+PLIST_SUB+= MING="@comment "
+.else
+LIB_DEPENDS+= ming.3:${PORTSDIR}/graphics/ming
+PLIST_SUB+= MING=""
+.endif
+
+.if defined(WITHOUT_PLOTUTILS)
+CONFIGURE_ARGS+= --without-libplot
+PLIST_SUB+= PLOTUTILS="@comment "
+.else
+LIB_DEPENDS+= plotter.4:${PORTSDIR}/graphics/plotutils
+PLIST_SUB+= PLOTUTILS=""
+.endif
+
pre-everything::
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
@${ECHO_MSG} ""
@@ -43,15 +80,14 @@ pre-everything::
.endif
post-patch:
- @${REINPLACE_CMD} -e 's|-pedantic||g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|CXXFLAGS="-g"|CXXFLAGS="$$CXXFLAGS"|g ; \
+ s|-pedantic||g' ${WRKSRC}/configure
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/pstoedit.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/changelog.htm ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/index.htm ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/pstoedit.htm ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>