1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Depend on pkg-config to allow for clean package deinstallation

(due to presence of files installed into ${PREFIX}/libdata/pkgconfig)
- Remove patches in favor of simpler REINPLACE substitution

PR:		ports/77279 (based on)
Submitted by:	Roman Bogorodskiy <bogorodskiy@inbox.ru>
This commit is contained in:
Sergei Kolobov 2005-02-18 12:14:05 +00:00
parent e317d86f7f
commit 808556826e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129157
3 changed files with 7 additions and 22 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= gnutls
PORTVERSION= 1.0.24
PORTREVISION= 1
CATEGORIES= security net
MASTER_SITES= ${MASTER_SITE_GNUPG} \
http://www.mirrors.wiretapped.net/security/network-security/gnutls/ \
@ -34,6 +35,8 @@ USE_GPG?= yes
SIG_SUFFIX= .sig
USE_ICONV= yes
USE_GETTEXT= yes
USE_GNOME= pkgconfig
USE_REINPLACE= yes
USE_INC_LIBTOOL_VER= 15
INSTALLS_SHLIB= yes
CPPFLAGS+= -I${LOCALBASE}/include
@ -47,6 +50,10 @@ MAN1= certtool.1 gnutls-cli.1 gnutls-cli-debug.1 \
DOCS= AUTHORS NEWS README THANKS doc/tex/*.ps
EXAMPLES= doc/examples/*.c
post-patch:
@${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \
${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in
post-install:
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}

View File

@ -1,11 +0,0 @@
--- lib/Makefile.in.orig Sun Nov 14 00:54:35 2004
+++ lib/Makefile.in Fri Jan 28 16:11:24 2005
@@ -296,7 +296,7 @@
m4data_DATA = libgnutls.m4
# Pkg-config script.
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir = $(prefix)/libdata/pkgconfig
pkgconfig_DATA = gnutls.pc
DISTCLEANFILES = $(pkgconfig_DATA)
LIBGNUTLS_EXPORTS = -export-symbols-regex '^(_gnutls|gnutls|_E_).*'

View File

@ -1,11 +0,0 @@
--- libextra/Makefile.in.orig Fri Jan 28 16:38:05 2005
+++ libextra/Makefile.in Fri Jan 28 16:38:25 2005
@@ -306,7 +306,7 @@ m4datadir = $(datadir)/aclocal
m4data_DATA = libgnutls-extra.m4
# Pkg-config script.
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir = $(prefix)/libdata/pkgconfig
pkgconfig_DATA = gnutls-extra.pc
DISTCLEANFILES = $(pkgconfig_DATA)
LIBGNUTLS_EXTRA_EXPORTS = -export-symbols-regex '^gnutls.*'