freebsd-ports/x11-wm/afterstep-stable/Makefile

95 lines
2.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: afterstep-stable
# Date created: 1 May 1998
# Whom: Brett Taylor <brett@peloton.physics.montana.edu>
1996-08-07 04:29:48 +02:00
#
1999-08-31 05:04:38 +02:00
# $FreeBSD$
1996-08-07 04:29:48 +02:00
#
PORTNAME= afterstep
2005-07-20 01:08:54 +02:00
PORTVERSION= 2.1.2
PORTREVISION= 1
CATEGORIES= x11-wm afterstep
MASTER_SITES= ftp://ftp.afterstep.org/stable/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= AfterStep-${PORTVERSION}
MAINTAINER= glewis@FreeBSD.org
COMMENT= A stable version of the AfterStep window manager
LIB_DEPENDS= rplay.1:${PORTSDIR}/audio/rplay \
jpeg.9:${PORTSDIR}/graphics/jpeg \
ungif.5:${PORTSDIR}/graphics/libungif \
png.5:${PORTSDIR}/graphics/png \
2005-02-22 22:37:10 +01:00
freetype.9:${PORTSDIR}/print/freetype2 \
tiff.4:${PORTSDIR}/graphics/tiff
RUN_DEPENDS= ${X11BASE}/bin/xli:${PORTSDIR}/graphics/xli
USE_BZIP2= yes
2005-07-20 01:08:54 +02:00
USE_GNOME= gtk20
USE_PERL5= yes
(1) Add new variable, XFREE86_VERSION, to specify which version of XFree86 (3 or 4) to depend to when USE_XLIB is set. XFREE86_VERSION defaults to 3 for now, but adventurous users can override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB will add a dependency to x11/XFree86; when it is set to 4, the dependency will be to x11/XFree86-4-libraries. When XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS hacks to avoid messing with XFree86 are turned off. Since XFree86 version 4 includes some software that used to be separate ports, when XFREE86_VERSION=3 the following variables are provided: USE_DGS LIB_DEPENDS on x11/dgs USE_FREETYPE LIB_DEPENDS on print/freetype USE_MESA LIB_DEPENDS on graphics/Mesa3 USE_XPM LIB_DEPENDS on graphics/xpm When XFREE86_VERSION=4, these variables have no effect. The LIB_DEPENDS in the tree for the above four ports have all been converted to the USE_* counterparts. For your information, this is the count of the number of ports: USE_DGS 0 USE_FREETYPE 16 USE_MESA 36 USE_XPM 236 There is a new variable, XAWVER, which is set to 6 when XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also passed to PLIST_SUB so ports that build Xaw based shared libraries can use this variable to substitute the shlib version number. There is also a provision of using a separate mtree file for XFREE86_VERSION=4, but that part is not enabled yet. Reviewed by: the ports list Tested by: make index (XFREE86_VERSION=3 only) (2) Add hebrew to list of valid categories. Submitted by: nbm
2000-08-03 11:28:57 +02:00
USE_XPM= yes
2005-07-20 01:08:54 +02:00
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+=--enable-i18n \
--disable-ascp \
--disable-send-postcard-to-developer \
--with-ungif \
--with-png-includes="${LOCALBASE}/include" \
--with-png-libs="${LOCALBASE}/lib" \
--with-jpeg-includes="${LOCALBASE}/include" \
--with-jpeg-libs="${LOCALBASE}/lib" \
--with-helpcommand="xterm -e man"
MAKE_ENV= INCS_PRIVATE="${CPPFLAGS}" LIBS_PRIVATE="${LDFLAGS}"
MAN1= ASDatabase.1x ASDatabaseEntry.1x AfterStep.1x Align.1x \
Animate.1x AnimateTypes.1x Arrange.1x Audio.1x AudioEvents.1x \
AutoExec.1x Base.1x Bevel.1x ColorScheme.1x Feel.1x \
FeelWindowBox.1x Functions.1x Gravity.1x Look.1x \
MyBackground.1x MyFrame.1x MyStyle.1x Pager.1x \
PagerDecorations.1x Placement.1x SupportedHints.1x \
2005-07-20 01:08:54 +02:00
TbarLayout.1x Wharf.1x WharfSounds.1x WinCommand.1x \
WinList.1x WinTabs.1x afterstep_faq.1x asimagexml.1x
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
.if defined(WITH_DIFFERENT_LOOKNFEELS)
CONFIGURE_ARGS+= --enable-different-looknfeels
.endif
.if !defined(WITH_SAVEWINDOWS)
CONFIGURE_ARGS+= --disable-savewindows
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= "Does not build on sparc64"
.endif
post-extract:
${CP} ${FILESDIR}/monitor_bsd.xpm \
${WRKSRC}/afterstep/desktop/icons/xml/monitor-bsd.xpm
2001-09-02 15:36:49 +02:00
post-patch:
.for file in afterstep/database
@${PERL} -pi -e 's,linux-penguin,monitor-bsd,' \
${WRKSRC}/${file}
.endfor
.for file in libAfterBase/Makefile.in libAfterImage/Makefile.in
@${PERL} -pi.orig -e 's,^install\.,noinstall.,g ; \
s,^install:,install:#,g' ${WRKSRC}/${file}
.endfor
.for file in libAfterBase/configure libAfterImage/configure
@${PERL} -pi.orig -e 's,="-O3",="$$CFLAGS",g' \
${WRKSRC}/${file}
.endfor
.for file in libAfterStep/afterstep-config.in
@${PERL} -pi -e 's,ft_version,libafterstep_version,g' \
${WRKSRC}/${file}
.endfor
2001-09-02 15:36:49 +02:00
.include <bsd.port.post.mk>