2001-10-08 16:28:17 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: libAfterImage
|
|
|
|
# Date created: Oct 7, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libafterimage
|
2005-06-27 00:43:22 +00:00
|
|
|
PORTVERSION= 1.07
|
2001-10-08 16:28:17 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= afterstep
|
|
|
|
DISTNAME= libAfterImage-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= Generic imaging library originally designed for AfterStep
|
2001-10-08 16:28:17 +00:00
|
|
|
|
2005-06-27 00:43:22 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2002-01-17 14:33:47 +00:00
|
|
|
ungif.5:${PORTSDIR}/graphics/libungif \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2002-03-11 17:25:31 +00:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2002-01-17 14:33:47 +00:00
|
|
|
|
2005-06-27 00:43:22 +00:00
|
|
|
USE_BZIP2= yes
|
2001-10-08 16:28:17 +00:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2002-01-17 14:33:47 +00:00
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2005-06-27 00:43:22 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
2002-01-17 14:33:47 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
2005-06-27 00:43:22 +00:00
|
|
|
CONFIGURE_ARGS= --disable-staticlibs --enable-sharedlibs \
|
|
|
|
--without-builtin-ungif --without-afterbase \
|
|
|
|
--with-x
|
2001-10-08 16:28:17 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2002-01-17 14:33:47 +00:00
|
|
|
MAN1= ascompose.1x
|
2001-10-08 16:28:17 +00:00
|
|
|
|
2002-01-17 14:33:47 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-06-27 00:43:22 +00:00
|
|
|
.if ${MACHINE_CPU:Mmmx}
|
2002-02-28 22:59:53 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-mmx-optimization
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mmx-optimization
|
2002-01-17 14:33:47 +00:00
|
|
|
.endif
|
2001-10-08 16:28:17 +00:00
|
|
|
|
2005-05-21 07:21:53 +00:00
|
|
|
post-extract:
|
|
|
|
@${LN} -sf ${WRKSRC} ${WRKDIR}/libAfterImage
|
|
|
|
|
2002-01-17 14:33:47 +00:00
|
|
|
post-patch:
|
2005-06-27 00:43:22 +00:00
|
|
|
@${REINPLACE_CMD} -e 's| malloc\.h | |g ; \
|
|
|
|
s|-lgif|-lungif|g ; \
|
|
|
|
s|CFLAGS="-O3"||g ; \
|
|
|
|
s| -rdynamic||' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|; ;|;|g' ${WRKSRC}/asimagexml.c
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/apps/ascompose.man \
|
|
|
|
${MANPREFIX}/man/man1/ascompose.1x
|
2001-10-08 16:28:17 +00:00
|
|
|
|
2002-01-17 14:33:47 +00:00
|
|
|
.include <bsd.port.post.mk>
|