freebsd-ports/graphics/libafterimage/Makefile
Tobias C. Berner 9e0e8d17a4 Prefer graphics/ligvrsvg2-rust over graphics/librsvg2
- switch to the more modern version of librsvg2 on architectures
  supporting rust
- this will fix some graphical issues on these architectures

PR:		250276
Exp-run by:	antoine
Submitted by:	tobik
Differential Revision:	https://reviews.freebsd.org/D18878
2020-11-09 17:08:12 +00:00

52 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= libafterimage
PORTVERSION= 1.20
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= SF/afterstep/libAfterImage/${PORTVERSION}
DISTNAME= libAfterImage-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Generic imaging library originally designed for AfterStep
LICENSE= LGPL21+
LIB_DEPENDS= libgif.so:graphics/giflib \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libfreetype.so:print/freetype2
USES= gnome jpeg pkgconfig tar:bzip2 xorg
USE_XORG= xext
USE_GNOME= librsvg2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-staticlibs --enable-sharedlibs \
--without-builtin-ungif --without-afterbase \
--with-x
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE_amd64= MMX
OPTIONS_DEFINE_i386= MMX
MMX_CONFIGURE_ENABLE= mmx-optimization
post-extract:
@${LN} -sf ${WRKSRC} ${WRKDIR}/libAfterImage
post-patch:
@${REINPLACE_CMD} -e \
's|CFLAGS="-O3"||g ; \
s| malloc\.h | |g' ${WRKSRC}/configure
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libAfterImage.so
(cd ${WRKSRC}/apps && ${INSTALL_MAN} ascompose.man \
${STAGEDIR}${MANPREFIX}/man/man1/ascompose.1x)
.include <bsd.port.mk>