2001-10-08 18:28:17 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: libAfterImage
|
|
|
|
# Date created: Oct 7, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libafterimage
|
2008-07-04 00:43:49 +02:00
|
|
|
PORTVERSION= 1.18
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 3
|
2001-10-08 18:28:17 +02:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/afterstep/libAfterImage/${PORTVERSION}
|
2001-10-08 18:28:17 +02:00
|
|
|
DISTNAME= libAfterImage-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= Generic imaging library originally designed for AfterStep
|
2001-10-08 18:28:17 +02:00
|
|
|
|
2009-10-13 08:40:29 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2010-02-05 12:46:55 +01:00
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2002-01-17 15:33:47 +01:00
|
|
|
ungif.5:${PORTSDIR}/graphics/libungif \
|
2010-03-28 08:47:48 +02:00
|
|
|
png.6:${PORTSDIR}/graphics/png \
|
2002-01-17 15:33:47 +01:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2002-03-11 18:25:31 +01:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2002-01-17 15:33:47 +01:00
|
|
|
|
2005-06-27 02:43:22 +02:00
|
|
|
USE_BZIP2= yes
|
2008-07-04 00:43:49 +02:00
|
|
|
USE_XORG= xext
|
|
|
|
USE_GNOME= gnometarget librsvg2
|
2001-10-08 18:28:17 +02:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2005-06-27 02:43:22 +02:00
|
|
|
CONFIGURE_ARGS= --disable-staticlibs --enable-sharedlibs \
|
|
|
|
--without-builtin-ungif --without-afterbase \
|
|
|
|
--with-x
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-10-08 18:28:17 +02:00
|
|
|
|
2002-01-17 15:33:47 +01:00
|
|
|
MAN1= ascompose.1x
|
2007-08-03 00:08:29 +02:00
|
|
|
MAN3= ascmap.3x afterimage.3x ascompose.3x asflip.3x asfont.3x asgrad.3x \
|
|
|
|
asimage.3x asimagexml.3x asmerge.3x asscale.3x astext.3x astile.3x \
|
|
|
|
asview.3x asvisual.3x blender.3x char2uni.3x common.3x export.3x \
|
|
|
|
imencdec.3x import.3x transform.3x ximage.3x
|
2001-10-08 18:28:17 +02:00
|
|
|
|
2002-01-17 15:33:47 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-06-27 02:43:22 +02:00
|
|
|
.if ${MACHINE_CPU:Mmmx}
|
2002-02-28 23:59:53 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-mmx-optimization
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mmx-optimization
|
2002-01-17 15:33:47 +01:00
|
|
|
.endif
|
2001-10-08 18:28:17 +02:00
|
|
|
|
2005-05-21 09:21:53 +02:00
|
|
|
post-extract:
|
|
|
|
@${LN} -sf ${WRKSRC} ${WRKDIR}/libAfterImage
|
|
|
|
|
2008-07-04 00:43:49 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|CFLAGS="-O3"||g ; \
|
|
|
|
s| malloc\.h | |g ; \
|
|
|
|
s|-lgif|-lungif|g' ${WRKSRC}/configure
|
2005-06-27 02:43:22 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/apps/ascompose.man \
|
|
|
|
${MANPREFIX}/man/man1/ascompose.1x
|
2001-10-08 18:28:17 +02:00
|
|
|
|
2002-01-17 15:33:47 +01:00
|
|
|
.include <bsd.port.post.mk>
|