1998-07-16 08:35:29 +02:00
|
|
|
# New ports collection makefile for: pstodit
|
|
|
|
# Date created: 03 July 1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-07-16 08:35:29 +02:00
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1998-07-16 08:35:29 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= pstoedit
|
2005-08-30 05:05:40 +02:00
|
|
|
PORTVERSION= 3.41
|
1998-07-16 08:35:29 +02:00
|
|
|
CATEGORIES= graphics print
|
2005-08-30 05:05:40 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1998-07-16 08:35:29 +02:00
|
|
|
|
2001-09-17 19:40:31 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= Convert PostScript to other vector graphic formats
|
1998-07-16 08:35:29 +02:00
|
|
|
|
2005-08-30 05:05:40 +02:00
|
|
|
OPTIONS= IMAGEMAGICK "Enable magick++ interface" on \
|
|
|
|
EMF "Enable emf interface" on \
|
|
|
|
MING "Enable swf interface" on \
|
|
|
|
PLOTUTILS "Enable libplot interface" on
|
2003-08-31 02:40:17 +02:00
|
|
|
|
2005-08-30 05:05:40 +02:00
|
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
|
|
|
USE_GHOSTSCRIPT= yes
|
2003-10-26 12:08:44 +01:00
|
|
|
USE_REINPLACE= yes
|
2005-08-30 05:05:40 +02:00
|
|
|
USE_LIBTOOL_VER= 15
|
2002-09-19 22:40:24 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
INSTALLS_SHLIB= yes
|
2000-03-09 11:02:47 +01:00
|
|
|
|
|
|
|
MAN1= pstoedit.1
|
|
|
|
|
2003-02-08 06:27:23 +01:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include/ming -I${LOCALBASE}/include \
|
2003-02-02 14:27:24 +01:00
|
|
|
-I${X11BASE}/include
|
2003-02-08 06:27:23 +01:00
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
2002-03-12 01:56:14 +01:00
|
|
|
|
2005-08-30 05:05:40 +02:00
|
|
|
.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
|
|
|
|
|
2003-09-27 02:45:43 +02:00
|
|
|
pre-everything::
|
2003-08-31 02:40:17 +02:00
|
|
|
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
|
2003-09-27 02:45:43 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
|
|
|
|
@${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one"
|
|
|
|
@${ECHO_MSG} ""
|
2003-08-31 02:40:17 +02:00
|
|
|
.endif
|
|
|
|
|
2003-10-26 12:08:44 +01:00
|
|
|
post-patch:
|
2005-08-30 05:05:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|CXXFLAGS="-g"|CXXFLAGS="$$CXXFLAGS"|g ; \
|
|
|
|
s|-pedantic||g' ${WRKSRC}/configure
|
2003-10-26 12:08:44 +01:00
|
|
|
|
2000-03-09 11:02:47 +01:00
|
|
|
post-install:
|
2002-09-19 22:40:24 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/pstoedit.1 ${MANPREFIX}/man/man1
|
2001-10-06 17:43:19 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-08-30 05:05:40 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${DOCSDIR}
|
2000-03-09 11:02:47 +01:00
|
|
|
.endif
|
1998-07-16 08:35:29 +02:00
|
|
|
|
2005-08-30 05:05:40 +02:00
|
|
|
.include <bsd.port.post.mk>
|