1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/x11-wm/fvwm2/Makefile
Tijl Coosemans 4d762c2da0 - Bump port revision after the latest libiconv commit because
locale_charset() is used when the ICONV option is enabled. [1]
- Remove X_CFLAGS from CONFIGURE_ENV.  Not needed.
- Remove --mandir=${MANPREFIX}/man from CONFIGURE_ARGS.  Redundant.
- Patch configure directly instead of configure.ac+autoconf.
- Prevent rebuilding manpages with --disable-mandoc.
- USES=tar:bzip2.
- Missing dependencies: USES=perl5, USE_XORG=xcursor xinerama xrender sm.
- Restore default options from before OPTIONSng conversion.
- Use OPTIONS_SUB=yes.
- Staging.
- Specify --without-iconv-library when empty(ICONV_LIB) to force libc iconv.
- New LIB_DEPENDS syntax.
- Remove remnants of OPTIONSng conversion: WITHOUT_GTK and WITHOUT_GNOME.
- Use --disable-gtk instead of --disable-gtktest.

Reported by:	kib [1]
2014-03-29 17:34:48 +00:00

139 lines
3.3 KiB
Makefile

# Created by: peter
# $FreeBSD$
PORTNAME= fvwm
PORTVERSION= 2.6.5
PORTREVISION= 3
CATEGORIES= x11-wm
MASTER_SITES= ftp://ftp.fvwm.org/pub/fvwm/version-2/ \
http://www.fvwm.org/generated/icon_download/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= cy@FreeBSD.org
COMMENT= Popular virtual window manager for X
RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4
# Other ports this port cannot coexist with
CONFLICTS?= fvwm-1.* fvwm-2.[457].*
NO_LATEST_LINK= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-mandoc --without-gnome
USES= gmake perl5 pkgconfig tar:bzip2
USE_XORG= xcursor xft xinerama xpm xrender
OPTIONS_DEFINE= ICONS ICONV STROKE RPLAY SESSION_MGMT PNG SVG BIDI NLS IMLIB
OPTIONS_DEFAULT=ICONS ICONV SESSION_MGMT PNG
OPTIONS_SUB= yes
STROKE_DESC= support for mouse gestures
RPLAY_DESC= RPlay support in FvwmEvent
SESSION_MGMT_DESC= Session Management support
BIDI_DESC= Asian bi-directional text support
IMLIB_DESC= imlib library (requires gtk12)
PLIST_SUB= FVWM_VERSION="${PORTVERSION}"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MICONS}
FVWM_ICONS= fvwm_icons-20070101
DISTFILES+= ${FVWM_ICONS}.tar.bz2
.endif
.if ${PORT_OPTIONS:MICONV}
USES+= iconv
.else
CONFIGURE_ARGS+= --disable-iconv
.endif
.if ${PORT_OPTIONS:MSTROKE}
LIB_DEPENDS+= libstroke.so:${PORTSDIR}/devel/libstroke
CONFIGURE_ARGS+= --with-stroke-library=${LOCALBASE}/lib \
--with-stroke-includes=${LOCALBASE}/include
.else
CONFIGURE_ARGS+= --without-stroke-library
.endif
.if ${PORT_OPTIONS:MRPLAY}
LIB_DEPENDS+= librplay.so:${PORTSDIR}/audio/rplay
CONFIGURE_ARGS+= --with-rplay-library=${LOCALBASE}/lib \
--with-rplay-includes=${LOCALBASE}/include
.else
CONFIGURE_ARGS+= --without-rplay-library
.endif
.if ${PORT_OPTIONS:MSESSION_MGMT}
USE_XORG+= sm
.else
CONFIGURE_ARGS+= --disable-sm
.endif
.if ${PORT_OPTIONS:MPNG}
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png
CONFIGURE_ARGS+= --with-png-includes=${LOCALBASE}/include \
--with-png-library=${LOCALBASE}/lib
.else
CONFIGURE_ARGS+= --without-png-library
.endif
.if ${PORT_OPTIONS:MSVG}
USE_GNOME+= librsvg2
.else
CONFIGURE_ARGS+= --disable-rsvg
.endif
.if ${PORT_OPTIONS:MBIDI}
LIB_DEPENDS+= libfribidi.so:${PORTSDIR}/converters/fribidi
CONFIGURE_ARGS+= --enable-bidi \
--with-bidi-bindir=${LOCALBASE}/bin
.else
CONFIGURE_ARGS+= --disable-bidi
.endif
.if ${PORT_OPTIONS:MIMLIB}
USE_GNOME+= imlib
.else
CONFIGURE_ARGS+=--disable-gtk
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+= --with-intl-library=${LOCALBASE}/lib \
--with-intl-includes=${LOCALBASE}/include
.else
CONFIGURE_ARGS+= --disable-nls
.endif
.include <bsd.port.pre.mk>
.if empty(ICONV_LIB)
CONFIGURE_ARGS+=--without-iconv-library
.else
CONFIGURE_ARGS+=--with-iconv-library=${ICONV_PREFIX}/lib \
--with-iconv-includes=${ICONV_PREFIX}/include
.endif
.if ${PORT_OPTIONS:MICONS}
post-extract:
@${MKDIR} ${WRKDIR}/icons
@${TAR} -xzf ${DISTDIR}/${FVWM_ICONS}.tar.bz2 -C ${WRKDIR}/icons
.endif
post-patch:
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \
${WRKSRC}/modules/FvwmM4/FvwmM4.c
post-install:
${INSTALL_DATA} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc \
${STAGEDIR}${PREFIX}/etc/system.fvwm2rc.dist
.if ${PORT_OPTIONS:MICONS}
${MKDIR} ${STAGEDIR}${PREFIX}/share/fvwm/pixmaps
${INSTALL_DATA} ${WRKDIR}/icons/${FVWM_ICONS}/*.xpm \
${STAGEDIR}${PREFIX}/share/fvwm/pixmaps
.endif
.include <bsd.port.post.mk>