From 1eca2345e92ca75e6e8cd6ef6415ce9075decf98 Mon Sep 17 00:00:00 2001
From: William Grzybowski <wg@FreeBSD.org>
Date: Fri, 21 Jun 2013 13:20:24 +0000
Subject: x11/lxmenu-data: minor fixes

- Add LICENSE (GPLv2) [1]
- Trim Makefile header [1]
- Install docs [1]
- Add DOCS to options
- Pass maintainership to submitter

PR:		ports/179706
Submitted by:	nemysis <nemysis@gmx.ch>
---
 x11/lxmenu-data/Makefile | 31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

(limited to 'x11')

diff --git a/x11/lxmenu-data/Makefile b/x11/lxmenu-data/Makefile
index 1bf3325706da..cc64dac4510a 100644
--- a/x11/lxmenu-data/Makefile
+++ b/x11/lxmenu-data/Makefile
@@ -1,24 +1,37 @@
-# New ports collection makefile for:	lxmenu-data
-# Date created:		Fri Sept 24 09:52:35 EST 2010
-# Whom:			Kris Moore <kmoore@freebsd.org>
-#
+# Created by: Kris Moore <kmoore@freebsd.org>
 # $FreeBSD$
-#
 
 PORTNAME=	lxmenu-data
 PORTVERSION=	0.1.2
 CATEGORIES=	x11
-MASTER_SITES=	SF/lxde/lxmenu-data%20%28desktop%20menu%29/lxmenu-data%20${PORTVERSION}
+MASTER_SITES=	SF/lxde/lxmenu-data%20%28desktop%20menu%29/lxmenu-data%20${PORTVERSION}/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	nemysis@gmx.ch
 COMMENT=	Menu data used by lxpanel
 
+LICENSE=	GPLv2
+
+USES=		gettext
 USE_XORG=	x11 xmu
 USE_GNOME=	intltool
-USES=		gettext
-GNU_CONFIGURE=	yes
 USE_AUTOTOOLS=	automake:env
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=--prefix=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc
 USE_GMAKE=	yes
 
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+PORTDOCS=	AUTHORS README TODO
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
 .include <bsd.port.mk>
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0