blob: 1e45f96b0cce1b9be804c8134551d2187990777e (
plain)
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
|
# $NetBSD: Makefile,v 1.71 2001/06/21 01:59:07 jlam Exp $
DISTNAME= ImageMagick-5.2.8
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.simplesystems.org/ImageMagick/
COMMENT= Package for display and interactive manipulation of images
CONFLICTS= geomview-* # both have a program named 'animate'
DEPENDS+= mpeg2codec-1.2:../../graphics/mpeg2codec
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
USE_BUILDLINK_ONLY= YES
GNU_CONFIGURE= YES
USE_X11= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
# Avoid compiler bug on "arm32"
.if (${MACHINE_ARCH} == arm32)
CFLAGS= -O
.endif
.include "../../mk/bsd.prefs.mk"
.include "../../graphics/jpeg/buildlink.mk"
.include "../../graphics/png/buildlink.mk"
.include "../../graphics/tiff/buildlink.mk"
# For things for which we do not specify an explicit dependency above, disable
# so that we don't cause implicit "hidden" dependencies. Users may reenable
# any of these manually as desired (PerlMagick should probably be a separate
# pkg, however).
CONFIGURE_ARGS+= --without-perl --without-dps --without-fpx \
--without-hdf --without-jbig --without-threads \
--without-ttf --without-wmf --without-xml
# Fix config scripts by removing buildlink directory references.
post-build:
@cd ${WRKSRC}; \
config_scripts="Magick++/bin/Magick++-config magick/Magick-config"; \
for file in $${config_scripts}; do \
${MV} -f $${file} $${file}.fixme; \
${SED} -e "s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \
-e "s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \
$${file}.fixme > $${file}; \
${RM} -f $${file}.fixme; \
${CHMOD} +x $${file}; \
done
post-install:
${INSTALL_DATA} ${WRKSRC}/Copyright.txt ${WRKSRC}/QuickStart.txt \
${PREFIX}/share/ImageMagick
.include "../../mk/bsd.pkg.mk"
|