supports them. This is determined by running ``configure --help'' in do-configure target and set the shell variable _LATE_CONFIGURE_ARGS which is then passed to CONFIGURE_ARGS. - Remove --mandir and --infodir in ports' Makefile where applicable Few ports use REINPLACE_CMD to achieve the same effect, remove them too. - Correct some manual pages location from PREFIX/man to MANPREFIX/man - Define INFO_PATH where necessary - Document that .info files are installed in a subdirectory relative to PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and subdirectory detection. PR: ports/111470 Approved by: portmgr Discussed with: stas (Mk/*), gerald (info related stuffs) Tested by: pointyhat exp run
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: swftools
|
|
# Date created: Feb 9, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= swftools
|
|
PORTVERSION= 0.8.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.swftools.org/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= SWF manipulation and generation utilities
|
|
|
|
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
ungif.5:${PORTSDIR}/graphics/libungif \
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
USE_GNOME= gnometarget pkgconfig
|
|
USE_GCC= 3.4+
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
MAN1= font2swf.1 gif2swf.1 jpeg2swf.1 pdf2swf.1 png2swf.1 \
|
|
swfbbox.1 swfc.1 swfcombine.1 swfdump.1 swfextract.1 \
|
|
swfstrings.1 wav2swf.1
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
.if defined(WITH_LAME) || exists(${LOCALBASE}/lib/libmp3lame.a)
|
|
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-lame
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's| -O | |g ; \
|
|
s|/usr/local/include|${LOCALBASE}/include|g ; \
|
|
s|/usr/local/lib|${LOCALBASE}/lib|g' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.mk>
|