Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= ImageMagick |
8 |
PORTNAME= ImageMagick |
9 |
PORTVERSION= 5.4.7.4 |
9 |
PORTVERSION= 5.4.7.4 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= graphics perl5 |
11 |
CATEGORIES= graphics perl5 |
11 |
MASTER_SITES= http://imagemagick.sourceforge.net/http/ \ |
12 |
MASTER_SITES= http://imagemagick.sourceforge.net/http/ \ |
12 |
ftp://ftp.yggdrasil.com/mirrors/site/ftp.simplesystems.org/pub/%SUBDIR%/ \ |
13 |
ftp://ftp.yggdrasil.com/mirrors/site/ftp.simplesystems.org/pub/%SUBDIR%/ \ |
Lines 32-37
Link Here
|
32 |
|
33 |
|
33 |
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 # XXX |
34 |
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 # XXX |
34 |
LIB_DEPENDS= fpx.1:${PORTSDIR}/graphics/libfpx \ |
35 |
LIB_DEPENDS= fpx.1:${PORTSDIR}/graphics/libfpx \ |
|
|
36 |
jasper.3:${PORTSDIR}/graphics/jasper \ |
35 |
jbig.1:${PORTSDIR}/graphics/jbigkit \ |
37 |
jbig.1:${PORTSDIR}/graphics/jbigkit \ |
36 |
jpeg.9:${PORTSDIR}/graphics/jpeg \ |
38 |
jpeg.9:${PORTSDIR}/graphics/jpeg \ |
37 |
lcms.1:${PORTSDIR}/graphics/lcms \ |
39 |
lcms.1:${PORTSDIR}/graphics/lcms \ |
Lines 53-59
Link Here
|
53 |
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} |
55 |
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} |
54 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
56 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
55 |
CONFIGURE_ARGS= --enable-shared --with-perl=${PERL5} \ |
57 |
CONFIGURE_ARGS= --enable-shared --with-perl=${PERL5} \ |
56 |
--without-gslib --without-hdf --without-jp2 |
58 |
--without-gslib |
57 |
INSTALLS_SHLIB= yes |
59 |
INSTALLS_SHLIB= yes |
58 |
|
60 |
|
59 |
MAN1= ImageMagick.1 Magick++-config.1 Magick-config.1 \ |
61 |
MAN1= ImageMagick.1 Magick++-config.1 Magick-config.1 \ |
Lines 89-101
Link Here
|
89 |
# Loadable coders, smaller executable, but PerlMagick not really works |
91 |
# Loadable coders, smaller executable, but PerlMagick not really works |
90 |
# ('make test' there works) |
92 |
# ('make test' there works) |
91 |
.if defined(WITH_IMAGEMAGICK_MODULES) |
93 |
.if defined(WITH_IMAGEMAGICK_MODULES) |
92 |
LIB_DEPENDS+= ltdl.1:${PORTSDIR}/devel/libtool |
|
|
93 |
CONFIGURE_ARGS+= --with-modules |
94 |
CONFIGURE_ARGS+= --with-modules |
94 |
PLIST_SUB+= MODULES='' |
95 |
PLIST_SUB+= MODULES='' |
95 |
.else |
96 |
.else |
96 |
PLIST_SUB+= MODULES='@comment ' |
97 |
PLIST_SUB+= MODULES='@comment ' |
97 |
.endif |
98 |
.endif |
98 |
|
99 |
|
|
|
100 |
.if defined(WITH_HDF) |
101 |
LIB_DEPENDS= df.1:${PORTSDIR}/graphics/hdf |
102 |
CONFIGURE_ARGS+= --with-hdf |
103 |
.endif |
104 |
|
99 |
.if defined(WITHOUT_X11) |
105 |
.if defined(WITHOUT_X11) |
100 |
PKGNAMESUFFIX+= -nox11 |
106 |
PKGNAMESUFFIX+= -nox11 |
101 |
BUILD_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu-nox11 |
107 |
BUILD_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu-nox11 |
Lines 121-135
Link Here
|
121 |
post-patch: |
127 |
post-patch: |
122 |
# Do not use PTHREAD_LIBS here |
128 |
# Do not use PTHREAD_LIBS here |
123 |
@${REINPLACE_CMD} -e 's|-lpthread|-lc_r|g ; \ |
129 |
@${REINPLACE_CMD} -e 's|-lpthread|-lc_r|g ; \ |
124 |
s|^tagnames=|#tagnames=|g ; \ |
130 |
s|^tagnames=|#tagnames=|g ; \ |
125 |
s|LIBLTDL=.*$$|LIBLTDL="-lltdl"|g ; \ |
131 |
s|lcms/lcms.h|lcms.h|g ; \ |
126 |
s|INCLTDL=.*$$|INCLTDL=|g ; \ |
132 |
s|lcms_lcms_h|lcms_h|g' ${WRKSRC}/configure |
127 |
s|lcms/lcms.h|lcms.h|g ; \ |
|
|
128 |
s|lcms_lcms_h|lcms_h|g' ${WRKSRC}/configure |
129 |
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ |
133 |
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ |
130 |
's|top_builddir)/ltdl/libltdlc.la|LIBLTDL)|g ; \ |
134 |
's|pkgdocdir =.*$$|pkgdocdir = ${DOCSDIR}/|g ; \ |
131 |
s|ltdl magick|magick|g ; \ |
|
|
132 |
s|pkgdocdir =.*$$|pkgdocdir = ${DOCSDIR}/|g ; \ |
133 |
s| install-data-html||g' |
135 |
s| install-data-html||g' |
134 |
@${REINPLACE_CMD} -e 's|lcms/lcms.h|lcms.h|g' ${WRKSRC}/magick/transform.c |
136 |
@${REINPLACE_CMD} -e 's|lcms/lcms.h|lcms.h|g' ${WRKSRC}/magick/transform.c |
135 |
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/ltdl/ltdl.c |
137 |
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/ltdl/ltdl.c |