Stagify
Use new lib_depend syntax. Add USES=libtool Use USE_GNOME introspection component Obtained from: GNOME dev repo
This commit is contained in:
parent
667edb495d
commit
84e4a28850
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347496
@ -15,5 +15,4 @@ PLIST= ${.CURDIR}/pkg-plist
|
||||
|
||||
SOUP_SLAVE= yes
|
||||
|
||||
NO_STAGE= yes
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
@ -1,10 +1,10 @@
|
||||
include/libsoup-gnome-%%VERSION%%/libsoup/soup-cookie-jar-sqlite.h
|
||||
include/libsoup-gnome-%%VERSION%%/libsoup/soup-gnome-features.h
|
||||
include/libsoup-gnome-%%VERSION%%/libsoup/soup-gnome.h
|
||||
lib/libsoup-gnome-%%VERSION%%.a
|
||||
lib/libsoup-gnome-%%VERSION%%.la
|
||||
lib/libsoup-gnome-%%VERSION%%.so
|
||||
lib/libsoup-gnome-%%VERSION%%.so.1
|
||||
lib/libsoup-gnome-%%VERSION%%.so.%%LIBVERSION%%
|
||||
libdata/pkgconfig/libsoup-gnome-%%VERSION%%.pc
|
||||
@dirrm include/libsoup-gnome-%%VERSION%%/libsoup
|
||||
@dirrm include/libsoup-gnome-%%VERSION%%
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
# $MCom: ports/trunk/devel/libsoup/Makefile 18456 2013-05-12 14:40:21Z kwm $
|
||||
# $MCom: ports/trunk/devel/libsoup/Makefile 19016 2014-03-08 09:05:27Z kwm $
|
||||
|
||||
PORTNAME= libsoup
|
||||
PORTVERSION= 2.40.3
|
||||
@ -10,64 +10,66 @@ MASTER_SITES= GNOME
|
||||
DIST_SUBDIR= gnome2
|
||||
|
||||
MAINTAINER= gnome@FreeBSD.org
|
||||
COMMENT= A SOAP (Simple Object Access Protocol) implementation in C
|
||||
COMMENT= SOAP (Simple Object Access Protocol) implementation in C
|
||||
|
||||
BUILD_DEPENDS= glib-networking>=2.29.18:${PORTSDIR}/net/glib-networking \
|
||||
python2:${PORTSDIR}/lang/python2
|
||||
LIB_DEPENDS= gcrypt:${PORTSDIR}/security/libgcrypt
|
||||
BUILD_DEPENDS= glib-networking>=2.29.18:${PORTSDIR}/net/glib-networking
|
||||
LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
|
||||
RUN_DEPENDS= glib-networking>=2.29.18:${PORTSDIR}/net/glib-networking
|
||||
|
||||
USE_XZ= yes
|
||||
|
||||
.if !defined(REFERENCE_PORT)
|
||||
|
||||
USES= gettext pathfix gmake pkgconfig
|
||||
USE_GNOME= gnomehier glib20 libxml2 ltverhack referencehack intltool
|
||||
USES= gettext gmake libtool pathfix pkgconfig
|
||||
USE_GNOME= gnomehier glib20 libxml2 referencehack intltool
|
||||
USE_SQLITE= 3
|
||||
USE_LDCONFIG= yes
|
||||
USE_AUTOTOOLS= libtool
|
||||
GNU_CONFIGURE= yes
|
||||
USE_PYTHON_BUILD= 2
|
||||
CONFIGURE_ARGS= --disable-more-warnings
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
PLIST_SUB= VERSION="2.4"
|
||||
LIBVERSION= 1.5.0
|
||||
PLIST_SUB= VERSION="2.4" LIBVERSION=${LIBVERSION}
|
||||
|
||||
.if defined(SOUP_SLAVE)
|
||||
USE_SQLITE= yes
|
||||
LIB_DEPENDS+= soup-2.4:${PORTSDIR}/devel/libsoup \
|
||||
gnome-keyring:${PORTSDIR}/security/libgnome-keyring
|
||||
USE_SQLITE= 3
|
||||
LIB_DEPENDS+= libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
|
||||
libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring
|
||||
CONFIGURE_ARGS+=--with-gnome
|
||||
.else
|
||||
BUILD_DEPENDS+= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
|
||||
USE_GNOME+= introspection:build
|
||||
CONFIGURE_ARGS+=--without-gnome
|
||||
.endif
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|env python|env ${PYTHON_VERSION}|g' \
|
||||
${WRKSRC}/libsoup/tld-parser.py
|
||||
|
||||
.if defined(SOUP_SLAVE)
|
||||
do-build:
|
||||
cd ${WRKSRC}/libsoup && ${GMAKE} libsoup-gnome-2.4.la
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.a ${PREFIX}/lib/
|
||||
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.la ${PREFIX}/lib/
|
||||
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.so ${PREFIX}/lib/
|
||||
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.so.1 ${PREFIX}/lib/
|
||||
cd ${WRKSRC}/libsoup && ${GMAKE} install-libsoupgnomeincludeHEADERS
|
||||
${INSTALL_DATA} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.la ${STAGEDIR}${PREFIX}/lib/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.so ${STAGEDIR}${PREFIX}/lib/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.so.1 ${STAGEDIR}${PREFIX}/lib/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/libsoup/.libs/libsoup-gnome-2.4.so.${LIBVERSION} ${STAGEDIR}${PREFIX}/lib/
|
||||
cd ${WRKSRC}/libsoup && DESTDIR=${STAGEDIR} ${GMAKE} install-libsoupgnomeincludeHEADERS
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if defined(SOUP_SLAVE)
|
||||
@${MKDIR} ${PREFIX}/libdata/pkgconfig
|
||||
@${INSTALL_DATA} ${WRKSRC}/libsoup-gnome-2.4.pc \
|
||||
${PREFIX}/libdata/pkgconfig/
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
||||
${INSTALL_DATA} ${WRKSRC}/libsoup-gnome-2.4.pc \
|
||||
${STAGEDIR}${PREFIX}/libdata/pkgconfig/
|
||||
.else
|
||||
@${INSTALL_DATA} ${WRKSRC}/libsoup/soup-connection.h \
|
||||
${PREFIX}/include/libsoup-2.4/libsoup/soup-connection.h
|
||||
${INSTALL_DATA} ${WRKSRC}/libsoup/soup-connection.h \
|
||||
${STAGEDIR}${PREFIX}/include/libsoup-2.4/libsoup/soup-connection.h
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsoup*.so*
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,8 +0,0 @@
|
||||
--- libsoup/tld-parser.py.orig 2013-05-12 13:59:58.000000000 +0000
|
||||
+++ libsoup/tld-parser.py 2013-05-12 14:00:36.000000000 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python2
|
||||
|
||||
# Generate tld rules
|
||||
# Copyright (C) 2012 Red Hat, Inc.
|
@ -50,6 +50,7 @@ lib/libsoup-%%VERSION%%.a
|
||||
lib/libsoup-%%VERSION%%.la
|
||||
lib/libsoup-%%VERSION%%.so
|
||||
lib/libsoup-%%VERSION%%.so.1
|
||||
lib/libsoup-%%VERSION%%.so.%%LIBVERSION%%
|
||||
libdata/pkgconfig/libsoup-%%VERSION%%.pc
|
||||
share/gir-1.0/Soup-%%VERSION%%.gir
|
||||
share/gtk-doc/html/libsoup-%%VERSION%%/SoupAddress.html
|
||||
|
Loading…
Reference in New Issue
Block a user