pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pintentry-dmenu: Fix build



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Oct 27 03:22:07 2020 +0100
Changeset:	a4cd4b2dac8af080956d4b798563d344696cd014

Modified Files:
	pinentry-dmenu/Makefile
	pinentry-dmenu/PLIST

Log Message:
pintentry-dmenu: Fix build

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a4cd4b2dac8af080956d4b798563d344696cd014

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pinentry-dmenu/Makefile | 20 +++++++++++++++-----
 pinentry-dmenu/PLIST    |  5 ++---
 2 files changed, 17 insertions(+), 8 deletions(-)

diffs:
diff --git a/pinentry-dmenu/Makefile b/pinentry-dmenu/Makefile
index ff8c2eb56c..ef4be7c3fb 100644
--- a/pinentry-dmenu/Makefile
+++ b/pinentry-dmenu/Makefile
@@ -9,15 +9,25 @@ HOMEPAGE=	https://github.com/ritze/pinentry-dmenu/
 COMMENT=	A pinentry program with the charm of dmenu
 LICENSE=	gnu-gpl-v2
 
-WRKSRC=	${WRKDIR}/pinentry-dmenu-0.2.2
+USE_TOOLS+=	pkg-config
 
-CFLAGS.NetBSD+=	-D_NETBSD_SOURCE
+PKG_VERSION=	\"0.1\"
+PKG_BUGREPORT=	\"https:\/\/github.com\/ritze\/pinentry-dmenu\"
 
-USE_X11=yes
+C_FLAGS=	`pkg-config --cflags x11 xinerama freetype2` \
+		-D_NETBSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
+		-DVERSION=${PKG_VERSION} \
+		-DPACKAGE_VERSION=${PKG_VERSION} \
+		-DPACKAGE_BUGREPORT=${PKG_BUGREPORT}
+LD_FLAGS=	`pkg-config --libs x11 xinerama freetype2 xft`
 
-#.include "../../x11/libXft/buildlink3.mk"
+MAKE_FLAGS+=	PREFIX=${PREFIX}
+MAKE_FLAGS+=	MANPREFIX=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+=	CFLAGS=${C_FLAGS:Q}
+MAKE_FLAGS+=	LDFLAGS=${LD_FLAGS:Q}
+
+.include "../../security/gpgme/buildlink3.mk"
 .include "../../graphics/freetype2/buildlink3.mk"
-#.include "../../x11/libX11/buildlink3.mk"
 .include "../../devel/libconfig/buildlink3.mk"
 .include "../../security/libassuan2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/pinentry-dmenu/PLIST b/pinentry-dmenu/PLIST
index 92ba51a2d7..f063b7ffb9 100644
--- a/pinentry-dmenu/PLIST
+++ b/pinentry-dmenu/PLIST
@@ -1,4 +1,3 @@
 @comment $NetBSD$
-@comment TODO: to fill this file with the file listing:
-@comment TODO: 1. run "/usr/bin/make package"
-@comment TODO: 2. run "/usr/bin/make print-PLIST"
+bin/pinentry-dmenu
+man/man1/pinentry-dmenu.1


Home | Main Index | Thread Index | Old Index