ports/185933: graphics/libafterimage: Fix build
KATO Tsuguru
tkato432 at yahoo.com
Mon Jan 20 18:40:01 UTC 2014
>Number: 185933
>Category: ports
>Synopsis: graphics/libafterimage: Fix build
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 20 18:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Fix build
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/graphics/libafterimage/Makefile graphics/libafterimage/Makefile
--- /usr/ports/graphics/libafterimage/Makefile 2013-12-07 00:31:40.000000000 +0900
+++ graphics/libafterimage/Makefile 2014-01-21 00:00:00.000000000 +0900
@@ -11,17 +11,16 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Generic imaging library originally designed for AfterStep
-BROKEN= Fails to build
-
-LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
- gif.5:${PORTSDIR}/graphics/giflib \
- png15:${PORTSDIR}/graphics/png \
- tiff.4:${PORTSDIR}/graphics/tiff \
- freetype.9:${PORTSDIR}/print/freetype2
-
LICENSE= LGPL21
+LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib \
+ libjpeg.so:${PORTSDIR}/graphics/jpeg \
+ libpng15.so:${PORTSDIR}/graphics/png \
+ libtiff.so:${PORTSDIR}/graphics/tiff \
+ libfreetype.so:${PORTSDIR}/print/freetype2
+
USE_BZIP2= yes
+USES= pkgconfig
USE_XORG= xext
USE_GNOME= librsvg2
GNU_CONFIGURE= yes
@@ -31,30 +30,26 @@
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
-MAN1= ascompose.1x
-
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE_amd64= MMX
+OPTIONS_DEFINE_i386= MMX
+
+MMX_CONFIGURE_ENABLE= mmx-optimization
-.if ${MACHINE_CPU:Mmmx}
-CONFIGURE_ARGS+= --enable-mmx-optimization
-.else
-CONFIGURE_ARGS+= --disable-mmx-optimization
-.endif
+.include <bsd.port.options.mk>
post-extract:
@${LN} -sf ${WRKSRC} ${WRKDIR}/libAfterImage
post-patch:
- @${REINPLACE_CMD} -e 's|CFLAGS="-O3"||g ; \
- s| malloc\.h | |g' \
- ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|CFLAGS="-O3"||g ; \
+ s| malloc\.h | |g' ${WRKSRC}/configure
post-install:
- ${INSTALL_MAN} ${WRKSRC}/apps/ascompose.man \
- ${MANPREFIX}/man/man1/ascompose.1x
+ (cd ${WRKSRC}/apps && ${INSTALL_MAN} ascompose.man \
+ ${STAGEDIR}${MANPREFIX}/man/man1/ascompose.1x)
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/graphics/libafterimage/pkg-plist graphics/libafterimage/pkg-plist
--- /usr/ports/graphics/libafterimage/pkg-plist 2013-11-06 22:01:44.000000000 +0900
+++ graphics/libafterimage/pkg-plist 2014-01-21 00:00:00.000000000 +0900
@@ -1,7 +1,7 @@
bin/afterimage-config
bin/afterimage-libs
-bin/ascompose
bin/ascheckttf
+bin/ascompose
bin/asflip
bin/asgrad
bin/asi18n
@@ -37,4 +37,5 @@
include/libAfterImage/xwrap.h
lib/libAfterImage.so
lib/libAfterImage.so.0
+man/man1/ascompose.1x.gz
@dirrm include/libAfterImage
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list