aboutsummaryrefslogtreecommitdiffstats
path: root/misc/lxde-common/Makefile
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-06-22 19:44:56 +0800
committerwg <wg@FreeBSD.org>2013-06-22 19:44:56 +0800
commite7aa3ae7250d4476c7c878cec01e4a995cc53a32 (patch)
treeb301bbf1b94a15aea42d0f39f69ac1c7ecdd7e0e /misc/lxde-common/Makefile
parent4e88c3285f276984f3cd5f04e9555e18ed86c0cd (diff)
downloadfreebsd-ports-gnome-e7aa3ae7250d4476c7c878cec01e4a995cc53a32.tar.gz
freebsd-ports-gnome-e7aa3ae7250d4476c7c878cec01e4a995cc53a32.tar.zst
freebsd-ports-gnome-e7aa3ae7250d4476c7c878cec01e4a995cc53a32.zip
misc/lxde-common: NLS and config fixes
- Trim Makefile header - Add LICENSE (GPLv2) - Install docs - Preserve original *.conf files - Pass maintainership to submitter PR: ports/179700 Submitted by: nemysis <nemysis@gmx.ch>
Diffstat (limited to 'misc/lxde-common/Makefile')
-rw-r--r--misc/lxde-common/Makefile43
1 files changed, 30 insertions, 13 deletions
diff --git a/misc/lxde-common/Makefile b/misc/lxde-common/Makefile
index 45483f6932a9..d33ef95d52b5 100644
--- a/misc/lxde-common/Makefile
+++ b/misc/lxde-common/Makefile
@@ -1,22 +1,19 @@
-# New ports collection makefile for: lxde-common
-# Date created: 2009/02/03
-# Whom: sahne
-#
+# Created by: sahne
# $FreeBSD$
-#
PORTNAME= lxde-common
PORTVERSION= 0.5.5
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= misc
-MASTER_SITES= SF/lxde/${PORTNAME}%20%28default%20config%29/LXDE%20Common%20${PORTVERSION}
+MASTER_SITES= SF/lxde/${PORTNAME}%20%28default%20config%29/LXDE%20Common%20${PORTVERSION}/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= nemysis@gmx.ch
COMMENT= LXDE Common files
-USE_GNOME= gtk20
-USE_GMAKE= yes
+LICENSE= GPLv2
+
USES= iconv
+USE_GNOME= gtk20
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
CPPFLAGS="-I${LOCALBASE}/include" \
@@ -24,12 +21,32 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
GMSGFMT="${LOCALBASE}/bin/msgfmt" \
--with-xsession-path=${PREFIX}/share/xsessions \
--with-xdg-path=${PREFIX}/share/applications
+USE_GMAKE= yes
DATADIR= ${PREFIX}/share/lxde
INSTALLS_ICONS= YES
-MAN1= startlxde.1\
- lxde-logout.1 \
- openbox-lxde.1
+MAN1= startlxde.1 lxde-logout.1 openbox-lxde.1
+
+PORTDOCS= AUTHORS README
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf.sample
+.if ! exists(${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf)
+ ${INSTALL_DATA} ${WRKSRC}/desktop.conf ${PREFIX}/etc/xdg/lxsession/LXDE/desktop.conf
+.endif
+.if ! exists(${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf)
+ ${INSTALL_DATA} ${WRKSRC}/pcmanfm/pcmanfm.conf ${PREFIX}/etc/xdg/pcmanfm/LXDE/pcmanfm.conf
+.endif
+
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
.include <bsd.port.mk>