mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
bb89f80c35
- Normalize the ImageMagick library name so it stays the same regardless of what the 16-bit and HDRI option are set to [1]. Teach cmake to look for the new name. Bump ports that link to the libraries due to this. - As a result do away with the "HALFSUPPORTED" option block, and list 16-bit and HDRI with the other options. - ImageMagick ships a basic SVG plugin when not using librsvg2 for SVG support. This basic SVG plugin needs libxml2 to work [2]. Make libxml2 a mandatory dependency (instead of only when the SVG option was selected). - Don't touch .keep files in the modules directory, there files there so it useless. PR: 194949 [1] PR: 195227 [2] Requested by: many [1] Submitted by: software-freebsd@interfasys.ch [2]
67 lines
1.8 KiB
Makefile
67 lines
1.8 KiB
Makefile
# Created by: Yinghong.Liu <relaxbsd@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= synfig
|
|
PORTVERSION= 0.64.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel graphics multimedia
|
|
MASTER_SITES= SF/${PORTNAME}/releases/${PORTVERSION}/source
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Vector based 2D animation package
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= etl>=0.04.17:${PORTSDIR}/devel/etl
|
|
LIB_DEPENDS= libboost_program_options.so:${PORTSDIR}/devel/boost-libs \
|
|
libltdl.so:${PORTSDIR}/devel/libltdl \
|
|
libMagickWand-6.so:${PORTSDIR}/graphics/ImageMagick \
|
|
libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
libmng.so:${PORTSDIR}/graphics/libmng \
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
|
libtiff.so:${PORTSDIR}/graphics/tiff \
|
|
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
|
|
libdv.so:${PORTSDIR}/multimedia/libdv
|
|
|
|
USES= gettext iconv libtool pathfix pkgconfig
|
|
USE_GNOME= cairo glibmm libxml++26
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/optimization_flags/s|CXXFLAGS=|#CXXFLAGS=| ; \
|
|
/optimization_flags/s|CFLAGS=|#CFLAGS=| ; \
|
|
s|el_GR|el| ; \
|
|
s|ja_JP|ja| ; \
|
|
s|no_NO|no| ; \
|
|
s|pl_PL|pl| ; \
|
|
s|sk_SK|sk| ; \
|
|
s|sv_SE|sv| ; \
|
|
s|<tr1/|<| ; \
|
|
s|::tr1||' \
|
|
${WRKSRC}/configure
|
|
|
|
post-build:
|
|
# FIX LC_MESSAGES
|
|
@${LN} -sf el_GR.gmo ${WRKSRC}/po/el.gmo
|
|
@${LN} -sf ja_JP.gmo ${WRKSRC}/po/ja.gmo
|
|
@${LN} -sf no_NO.gmo ${WRKSRC}/po/no.gmo
|
|
@${LN} -sf pl_PL.gmo ${WRKSRC}/po/pl.gmo
|
|
@${LN} -sf sk_SK.gmo ${WRKSRC}/po/sk.gmo
|
|
@${LN} -sf sv_SE.gmo ${WRKSRC}/po/sv.gmo
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for doc in AUTHORS ChangeLog INSTALL NEWS README TODO
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${STAGEDIR}${DOCSDIR})
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|