1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/editors/leafpad/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

47 lines
955 B
Makefile

# Created by: Michael Johnson <ahze@ahze.net>
# $FreeBSD$
PORTNAME= leafpad
PORTVERSION= 0.8.18.1
PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= SAVANNAH
MAINTAINER= jgh@FreeBSD.org
COMMENT= GTK+ based simple text editor
LICENSE= GPLv2
USE_GNOME= gtk20 intlhack
USES= desktop-file-utils gmake pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-chooser
INSTALLS_ICONS= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.options.mk>
post-extract:
@${CHMOD} a+x ${WRKSRC}/install-sh
post-patch:
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|SUBDIRS = src data po|SUBDIRS = src data|g' \
${WRKSRC}/Makefile.in
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>