1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/graphics/enfle/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

96 lines
2.5 KiB
Makefile

# New ports collection makefile for: enfle
# Date created: Tue Sep 28 02:25:17 JST 1999
# Whom: Yuki Sawada <samy@goldmoon.org>
#
# $FreeBSD$
#
PORTNAME= enfle
PORTVERSION= 20071024
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://enfle.fennel.org/files/stable/
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple plugin-based graphics viewer
BUILD_DEPENDS= ${LOCALBASE}/lib/X11/rgb.txt:${PORTSDIR}/x11/rgb
LIB_DEPENDS= arc.1:${PORTSDIR}/archivers/libarc \
jasper.4:${PORTSDIR}/graphics/jasper \
jpeg.10:${PORTSDIR}/graphics/jpeg \
mng.1:${PORTSDIR}/graphics/libmng \
ungif.5:${PORTSDIR}/graphics/libungif \
png.5:${PORTSDIR}/graphics/png \
theora.0:${PORTSDIR}/multimedia/libtheora
RUN_DEPENDS:= ${BUILD_DEPENDS}
OPTIONS= SIMD "Enable x86 SIMD (MMX/SSE)" off
USE_BZIP2= yes
USE_XORG= ice x11 xext xv
USE_GNOME= esound
USE_ICONV= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:22
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
ac_cv_header_mpeg_h=no \
ac_cv_header_libmpeg3_h=no \
ac_cv_header_decore_h=no \
ac_cv_header_avifile_h=no
CONFIGURE_ARGS= --with-ungif --disable-avcodec
PKGDEINSTALL= ${PKGINSTALL}
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
CONFIGURE_ARGS+= --enable-spi --enable-dmo
.if !defined(WITH_SIMD)
CONFIGURE_ARGS+= --disable-mmx --disable-sse
.endif
.endif
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
.if ${OSVERSION} < 700000
PLIST_SUB+= DISABLED="@comment "
.else
PLIST_SUB+= DISABLED=""
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/local/|${LOCALBASE}/|g ; \
s|/usr/X11R6/|${LOCALBASE}/|g ; \
/LIB/s|-lpthread|${PTHREAD_LIBS}|g ; \
/LIB/s|-lc_r|${PTHREAD_LIBS}|g ; \
/CFLAGS/s|-pthread|${PTHREAD_CFLAGS}|g ; \
/LIB/s|-ldl||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/enfle -N/s|^|#|g' ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e \
's|/usr/share/X11|${LOCALBASE}/lib/X11|g ; \
/X11R6/d' ${WRKSRC}/plugins/loader/xpm/xpm.c
@${REINPLACE_CMD} -e \
's|arciver_|archiver_|g' ${WRKSRC}/plugins/archiver/rar/unrar.c
.if ${OSVERSION} < 700000
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|effect|| ; \
/^SUBDIRS/s|audiodecoder|| ; \
/^SUBDIRS/s|videodecoder|| ; \
/^SUBDIRS/s|demultiplexer||' ${WRKSRC}/plugins/Makefile.in
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|tar||' ${WRKSRC}/plugins/archiver/Makefile.in
.endif
post-install:
@${SETENV} PKG_PREFIX="${PREFIX}" \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>