blob: 7e50ffaf5f4a0ce7dfb511e1cd8401c57e349b72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# New ports collection makefile for: pstodit
# Date created: 03 July 1998
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pstoedit
PORTVERSION= 3.41
CATEGORIES= graphics print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Convert PostScript to other vector graphic formats
OPTIONS= IMAGEMAGICK "Enable magick++ interface" on \
EMF "Enable emf interface" on \
MING "Enable swf interface" on \
PLOTUTILS "Enable libplot interface" on
USE_GNOME= gnomehack gnometarget pkgconfig
USE_GHOSTSCRIPT= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
MAN1= pstoedit.1
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} ""
@${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
@${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one"
@${ECHO_MSG} ""
.endif
post-patch:
@${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}/doc/*.htm ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|