1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/deskutils/parcellite/Makefile
Philip M. Gollucci dd0229f65e deskutils/parcellite: update to 1.1.9
- Update to 1.1.9.
- Remove patch-src__main.c - it's not needed now.
- Add CPPFLAGS/LIBS (unbreak configure).
- Patch Makefiles - add missing libraries to LDADD.
- Add LICENSE_FILE.
- Add all used dependencies (USE_GNOME=glib20 pango, USE_XORG=x11).
- Honor Option NLS

PR:                  201875
Submitted by:        s3erios@gmail.com
Approved by:         maintainer timeout (koalative@gmail.com ; 23 days)
2015-08-19 02:17:46 +00:00

66 lines
1.6 KiB
Makefile

# Created by: Joey Mingrone <joey@mingrone.org>
# $FreeBSD$
PORTNAME= parcellite
PORTVERSION= 1.1.9
PORTEPOCH= 1
CATEGORIES= deskutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= koalative@gmail.com
COMMENT= Lightweight GTK+ clipboard manager
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= pkgconfig
GNU_CONFIGURE= yes
USE_GNOME= glib20 gtk20 pango
USE_XORG= x11
CONFIGURE_ARGS+=--disable-appindicator
PORTDOCS= AUTHORS ChangeLog README
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
LIBS+= -lgio-2.0
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gmake gettext
NLS_USE= GNOME=intltool
NLS_USES_OFF= autoreconf
NLS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extrapatch-configure.ac
NLS_LIBS= -lintl
SUB_FILES= pkg-message
post-patch-NLS-on:
@${REINPLACE_CMD} -e 's|$$(DATADIRNAME)/locale|share/locale|' \
${WRKSRC}/po/Makefile.in.in
post-patch-NLS-off:
@${REINPLACE_CMD} -e 's|@INTLTOOL_DESKTOP_RULE@||' \
${WRKSRC}/data/Makefile.am
@${REINPLACE_CMD} -e 's|_Name|Name|' -e 's|_Comment|Comment|' \
${WRKSRC}/data/parcellite-startup.desktop.in \
${WRKSRC}/data/parcellite.desktop.in
post-patch:
@${REINPLACE_CMD} -e 's|/proc|/compat/linux/proc|g' \
${WRKSRC}/src/utils.c
pre-build-NLS-off:
@${REINPLACE_CMD} -e '/SUBDIRS = /s| po||' ${WRKSRC}/Makefile
${MV} ${WRKSRC}/data/parcellite-startup.desktop.in \
${WRKSRC}/data/parcellite-startup.desktop
${MV} ${WRKSRC}/data/parcellite.desktop.in \
${WRKSRC}/data/parcellite.desktop
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>