f65f20b278
A big Thank You to the original contributors of these ports: * Adam Weinberger * Alejandro Pulver <alepulver@FreeBSD.org> * Alexey Dokuchaev <danfe@FreeBSD.org> * Alexey Dokuchaev <danfe@regency.nsu.ru> * Andreas Kohn <andreas@syndrom23.de> * Anton Tornqvist <antont@inbox.lv> * Aragon Gouveia <aragon@phat.za.net> * Babak Farrokhi <babak@farrokhi.net> * Brett Taylor <brett@peloton.physics.montana.edu> * Brian Handy <handy@physics.montana.edu> * Bruce A. Mah <bmah@ca.sandia.gov> * Dennis Herrmann <adox@mcx2.org> * Dennis Herrmann <dhn@FreeBSD.org> * Dima Sivachenko <dima@chg.ru> * Dominik Rothert <dr@domix.de> * Douglas Carmichael <dcarmich@mcs.com> * Eric Anholt <anholt@FreeBSD.org> * Felix Palmen <felix@palmen-it.de> * Florent Thoumie <flz@xbsd.org> * Garrett Rooney <rooneg@electricjellyfish.net> * George Reid <greid@ukug.uk.freebsd.org> * Gergely Nagy <8@free.bsd.hu> * Gustau Perez i Querol <gustau.perez@gmail.com> * J Han <hjh@photino.com> * Jakub Lach <jakub_lach@mailplus.pl> * James Earl <jdearl@telus.net> * Jean-Yves Lefort <jylefort@brutele.be> * Jeroen Schot <schot@a-eskwadraat.nl> * Jim Mock <jim@FreeBSD.org> * Matt Lancereau <matt@rimasec.net> * Matthieu Guegan <matt.guegan@free.fr> * Maxim Sobolev <sobomax@FreeBSD.org> * Michael Ebert <ebert@informatik.unibw-muenchen.de> * Michael Johnson <ahze@ahze.net> * Neil Blakey-Milner * Nikos Ntarmos <ntarmos@ceid.upatras.gr> * Olivier Duchateau * Patrick Seal <patseal@hyperhost.net> * Pawel Worach <pawel.worach@gmail.com> * Peter Pentchev <roam@FreeBSD.org> * Robert Noland <rnoland@FreeBSD.org> * Roman Bogorodskiy <bogorodskiy@inbox.ru> * Rudolf Polzer <freebsd-dr@durchnull.de> * Rusmir Dusko <nemysis@FreeBSD.org> * Stefan Zehl <sec@42.org> * Tommy Scheunemann <net@arrishq.org> * V. Jahns <vj562001@yahoo.de> * Will Andrews <andrews@technologist.com> * William Grzybowski <wg@FreeBSD.org> * William Grzybowski <william88@gmail.com> * Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp> * Yukihiro Nakai <nakai@FreeBSD.org> * alepulver * anders@hack.org * asami * chinsan * gahr * gpalmer * hrkfrd@gmail.com * jfitz@FreeBSD.org * lab@fnurt.net * peter * spn * torstenb * trevor * vanilla With hat: portmgr
138 lines
3.7 KiB
Makefile
138 lines
3.7 KiB
Makefile
PORTNAME= fvwm
|
|
PORTVERSION= 2.6.9
|
|
PORTREVISION= 2
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= https://github.com/fvwmorg/fvwm/releases/download/${PORTVERSION}/ \
|
|
http://fvwm.sourceforge.net/generated/icon_download/ \
|
|
http://cschubert.com/distfiles/ \
|
|
LOCAL/cy
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= cy@FreeBSD.org
|
|
COMMENT= Popular virtual window manager for X
|
|
|
|
RUN_DEPENDS= gm4:devel/m4 \
|
|
p5-XML-Parser>=0:textproc/p5-XML-Parser
|
|
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2
|
|
|
|
# Other ports this port cannot coexist with
|
|
CONFLICTS_INSTALL= fvwm3
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-mandoc --without-gnome --disable-gtk \
|
|
ac_cv_path_PYTHON=${PYTHON_CMD}
|
|
USES= cpe gmake gnome perl5 pkgconfig python:3.4+ gettext readline xorg
|
|
USE_XORG= xcursor xft xinerama xpm xrender x11 ice xext
|
|
USE_GNOME= cairo
|
|
|
|
OPTIONS_DEFINE= ICONS ICONV STROKE RPLAY SESSION_MGMT PNG SVG BIDI NLS
|
|
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
|
|
|
|
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}
|
|
CONFIGURE_ARGS+= --with-iconv-library=${LOCALBASE}/lib \
|
|
--with-iconv-includes=${LOCALBASE}/include \
|
|
--enable-iconv
|
|
USES+= iconv
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-iconv
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSTROKE}
|
|
LIB_DEPENDS+= libstroke.so: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: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+= libpng.so: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:converters/fribidi
|
|
CONFIGURE_ARGS+= --enable-bidi \
|
|
--with-bidi-bindir=${LOCALBASE}/bin
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-bidi
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
CONFIGURE_ARGS+= --with-intl-library=${LOCALBASE}/lib \
|
|
--with-intl-includes=${LOCALBASE}/include
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.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
|
|
@${REINPLACE_CMD} -e 's,/etc/,${LOCALBASE}/etc/,g' \
|
|
${WRKSRC}/bin/fvwm-menu-desktop.in
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/system.fvwm2rc \
|
|
${STAGEDIR}${PREFIX}/etc/system.fvwm2rc.dist
|
|
${INSTALL_MAN} ${WRKSRC}/doc/fvwm/fvwm.1 \
|
|
${STAGEDIR}${PREFIX}/man/man1/fvwm.1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/fvwm/fvwm.1 \
|
|
${STAGEDIR}${PREFIX}/man/man1/fvwm2.1
|
|
${GZIP_CMD} ${STAGEDIR}${PREFIX}/man/man1/fvwm.1 \
|
|
${STAGEDIR}${PREFIX}/man/man1/fvwm2.1
|
|
.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>
|