diff options
author | danfe <danfe@FreeBSD.org> | 2011-04-04 17:07:02 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2011-04-04 17:07:02 +0800 |
commit | 13e4ffc90f5845ae22a46bfe0e04528c46551ab7 (patch) | |
tree | 37304e0b6e75910a0b54df072079fabd3ab00415 /x11-wm | |
parent | fe1ca3f7c5078f2aa54d53f09de38ae348b2d5f6 (diff) | |
download | freebsd-ports-gnome-13e4ffc90f5845ae22a46bfe0e04528c46551ab7.tar.gz freebsd-ports-gnome-13e4ffc90f5845ae22a46bfe0e04528c46551ab7.tar.zst freebsd-ports-gnome-13e4ffc90f5845ae22a46bfe0e04528c46551ab7.zip |
- Fix package list when build with Gtk2 installed and detected
- Replace direct (via LIB_DEPENDS) libXft dependency with USE_XORG one
- Expand submitter's name to FQPI in the Makefile header
- Utilize PORTDOCS macro and offload pkg-plist
- Massively cleanup Makefile while here
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/aewm/Makefile | 33 | ||||
-rw-r--r-- | x11-wm/aewm/pkg-plist | 8 |
2 files changed, 16 insertions, 25 deletions
diff --git a/x11-wm/aewm/Makefile b/x11-wm/aewm/Makefile index ede602d102fc..f610fb37d85f 100644 --- a/x11-wm/aewm/Makefile +++ b/x11-wm/aewm/Makefile @@ -1,6 +1,6 @@ # New ports collection makefile for: aewm # Date created: 2000-12-16 -# Whom: trevor +# Whom: Trevor Johnson <trevor@FreeBSD.org> # # $FreeBSD$ # @@ -14,39 +14,40 @@ MASTER_SITES= http://www.red-bean.com/decklin/aewm/ MAINTAINER= ports@FreeBSD.org COMMENT= ICCCM-compliant window manager based on 9wm -USE_XORG= x11 xext xt xaw -WANT_GNOME= yes USE_GMAKE= yes MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" XROOT="${LOCALBASE}" +USE_XORG= x11 xext xt xaw +WANT_GNOME= yes MAN1= aeclients.1 aewm.1 +# XXX should use LICENSE instead of installing it as part of documentation, +# but our license framework does not support XFree86 license at this moment +PORTDOCS= DESIGN LICENSE NEWS README TODO GTKCLIENTS= aemenu-gtk aepanel-gtk XAWCLIENTS= aemenu-xaw aepanel-xaw aesession set-gnome-pda .include <bsd.port.pre.mk> -.if ${HAVE_GNOME:Mgtk20}!="" -USE_GNOME+= gtk20 -PKGNAMESUFFIX= -gtk -.else +.if ${HAVE_GNOME:Mgtk20} != "" +USE_GNOME= gtk20 +PLIST_FILES= bin/aemenu-gtk bin/aepanel-gtk .endif .if defined(WITH_XFT) -LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft +XORG+= xft MAKE_ENV+= DEFINES="-DXFT" \ EXTRA_INC="`pkg-config --cflags xft`" \ EXTRA_LIBS="`pkg-config --libs xft`" .endif post-patch: - @${REINPLACE_CMD} -e '/^SUBDIR/s|clients||g' ${WRKSRC}/Makefile -.for i in clients/lib/aeclients.h src/aewm.h - @${REINPLACE_CMD} -e 's|/etc/X11/|${PREFIX}/etc/|g' ${WRKSRC}/${i} -.endfor + @${REINPLACE_CMD} -e '/^SUBDIR/s| clients||' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|/etc/X11|${PREFIX}/etc|' \ + ${WRKSRC}/clients/lib/aeclients.h ${WRKSRC}/src/aewm.h post-build: -.if ${HAVE_GNOME:Mgtk20}!="" +.if ${HAVE_GNOME:Mgtk20} != "" cd ${WRKSRC}/clients && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} \ ${GTKCLIENTS} ${XAWCLIENTS} .else @@ -59,7 +60,7 @@ do-install: .for i in ${XAWCLIENTS} ${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin .endfor -.if ${HAVE_GNOME:Mgtk20}!="" +.if ${HAVE_GNOME:Mgtk20} != "" .for i in ${GTKCLIENTS} ${INSTALL_PROGRAM} ${WRKSRC}/clients/${i} ${PREFIX}/bin .endfor @@ -83,9 +84,7 @@ do-install: .endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for i in DESIGN LICENSE NEWS README TODO - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif .include <bsd.port.post.mk> diff --git a/x11-wm/aewm/pkg-plist b/x11-wm/aewm/pkg-plist index 1587aab5f570..778f5fc9041e 100644 --- a/x11-wm/aewm/pkg-plist +++ b/x11-wm/aewm/pkg-plist @@ -1,8 +1,6 @@ bin/aemenu -%%GNOME:%%bin/aemenu-gtk bin/aemenu-xaw bin/aepanel -%%GNOME:%%bin/aepanel-gtk bin/aepanel-xaw bin/aesession bin/aewm @@ -13,10 +11,4 @@ etc/aewm/aewmrc.sample @unexec if cmp -s %D/etc/aewm/clientsrc.sample %D/etc/aewm/clientsrc; then rm -f %D/etc/aewm/clientsrc; fi etc/aewm/clientsrc.sample @exec if [ ! -e %D/etc/aewm/clientsrc ]; then cp %D/etc/aewm/clientsrc.sample %D/etc/aewm/clientsrc; fi -%%PORTDOCS%%%%DOCSDIR%%/DESIGN -%%PORTDOCS%%%%DOCSDIR%%/LICENSE -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrmtry etc/aewm |