Update to libgexiv2-0.6.1.

This commit is contained in:
ajacoutot 2013-03-23 15:19:08 +00:00
parent 1cc578245b
commit 357edb24fe
6 changed files with 59 additions and 44 deletions

View File

@ -1,35 +1,51 @@
# $OpenBSD: Makefile,v 1.11 2013/03/21 08:45:18 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.12 2013/03/23 15:19:08 ajacoutot Exp $
COMMENT= GObject wrapper around exiv2
CATEGORIES= graphics
DISTNAME= libgexiv2-0.4.1
REVISION= 0
SHARED_LIBS += gexiv2 1.0 # .0.0
V= 0.6.1
DISTNAME= libgexiv2_${V}
EXTRACT_SUFX= .tar.xz
PKGNAME= libgexiv2-${V}
WRKDIST= ${WRKDIR}/${DISTNAME:S/_/-/}
CATEGORIES= graphics
SHARED_LIBS += gexiv2 2.0 # 2.0
HOMEPAGE= http://redmine.yorba.org/projects/gexiv2/wiki
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://yorba.org/download/gexiv2/0.4/
EXTRACT_SUFX= .tar.bz2
WANTLIB += exiv2 expat ffi glib-2.0 gobject-2.0 gthread-2.0 m
WANTLIB += pcre pthread stdc++ z
MASTER_SITES= http://yorba.org/download/gexiv2/${V:C/^([0-9]+\.[0-9]+).*/\1/}/
MODULES= devel/gettext
BUILD_DEPENDS= devel/gobject-introspection
LIB_DEPENDS= graphics/exiv2 \
devel/glib2
USE_GMAKE= Yes
CONFIGURE_STYLE=simple
CONFIGURE_ARGS= --prefix='${PREFIX}' \
--enable-introspection \
--with-libtool=${LIBTOOL} \
CXX='${CXX}' \
INSTALL_PROGRAM='${INSTALL_PROGRAM}' \
INSTALL_DATA='${INSTALL_DATA}'
MODULES= devel/gettext
LIB_DEPENDS = graphics/exiv2>=0.22 \
devel/glib2
WANTLIB += exiv2 expat ffi glib-2.0 gobject-2.0 gthread-2.0 m
WANTLIB += pcre stdc++ z
NO_TEST = Yes
.include <bsd.port.mk>
# LONG_BIT
.for _m in ${MACHINE_ARCH}
. if !empty(LP64_ARCHS:M${_m})
CXXFLAGS += -DWORD_SIZE=64
. else
CXXFLAGS += -DWORD_SIZE=32
. endif
.endfor

View File

@ -1,5 +1,2 @@
MD5 (libgexiv2-0.4.1.tar.bz2) = BV7/5whlLwx0QKPe8GBH2g==
RMD160 (libgexiv2-0.4.1.tar.bz2) = WhPvFkaZam5YlWvjTh7Is0tjkME=
SHA1 (libgexiv2-0.4.1.tar.bz2) = t0zRmkz0pKMqk47LJnl0wp5jDcI=
SHA256 (libgexiv2-0.4.1.tar.bz2) = xR6Lrn5ThmtHS1Hk7vGbmDhfvq8u2sKu/X0k7T99nW4=
SIZE (libgexiv2-0.4.1.tar.bz2) = 25484
SHA256 (libgexiv2_0.6.1.tar.xz) = cu4vzGqYyeg0Z63qRbENG2HFVlTCBNzOnCRjYVOJqeM=
SIZE (libgexiv2_0.6.1.tar.xz) = 27300

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-Makefile,v 1.5 2012/04/05 12:58:14 ajacoutot Exp $
--- Makefile.orig Thu Mar 29 00:41:52 2012
+++ Makefile Thu Apr 5 14:36:16 2012
@@ -137,7 +137,7 @@ vapi: $(VAPI_FILE)
$OpenBSD: patch-Makefile,v 1.6 2013/03/23 15:19:08 ajacoutot Exp $
--- Makefile.orig Tue Mar 19 22:41:56 2013
+++ Makefile Sat Mar 23 15:37:54 2013
@@ -179,7 +179,7 @@ vapi: $(VAPI_FILE)
.PHONY: install
install:
@mkdir -p $(DESTDIR)$(PREFIX)/$(LIB)
@ -10,7 +10,7 @@ $OpenBSD: patch-Makefile,v 1.5 2012/04/05 12:58:14 ajacoutot Exp $
@mkdir -p $(DESTDIR)$(PREFIX)/include/$(PKGNAME)
$(INSTALL_DATA) $(EXPANDED_INSTALLED_HEADER_FILES) $(DESTDIR)$(PREFIX)/include/$(PKGNAME)
@mkdir -p $(DESTDIR)$(PREFIX)/$(LIB)/pkgconfig
@@ -150,7 +150,7 @@ install-vapi:
@@ -207,7 +207,7 @@ install-vapi:
$(INSTALL_DATA) $(VAPI_FILE) $(DESTDIR)$(PREFIX)/share/vala/vapi
uninstall:
@ -19,20 +19,20 @@ $OpenBSD: patch-Makefile,v 1.5 2012/04/05 12:58:14 ajacoutot Exp $
rm -rf $(DESTDIR)$(PREFIX)/include/$(PKGNAME)
rm -f $(DESTDIR)$(PREFIX)/$(LIB)/pkgconfig/$(PKGNAME).pc
rm -f $(DESTDIR)$(PREFIX)/share/vala/vapi/$(PKGNAME).vapi
@@ -162,13 +162,13 @@ $(VAPI_FILE): $(EXPANDED_VAPI_INPUT) $(DESTDIR_HEADER_
@@ -229,13 +229,14 @@ $(VAPI_FILE): $(EXPANDED_VAPI_INPUT) $(DESTDIR_HEADER_
vapigen --library=$(PKGNAME) --metadatadir=vapi vapi/$(PKGNAME).gi
$(PC_FILE): $(PC_INPUT) Makefile $(CONFIG_IN)
- m4 '--define=_VERSION_=$(VERSION)' '--define=_PREFIX_=$(PREFIX)' $< > $@
+ m4 '-D_VERSION_=$(VERSION)' '-D_PREFIX_=$(PREFIX)' $< > $@
$(EXPANDED_OBJ_FILES): $(BUILD_DIR)/%.o: gexiv2/%.cpp $(EXPANDED_HEADER_FILES) $(CONFIG_IN) Makefile
$(EXPANDED_LO_FILES): $(BUILD_DIR)/%.lo: gexiv2/%.cpp $(EXPANDED_HEADER_FILES) $(CONFIG_IN) Makefile
@pkg-config --print-errors --exists '$(EXT_PKG_VERSIONS)'
@mkdir -p $(BUILD_DIR)
- libtool --mode=compile --tag=CC $(CXX) -c $(EXT_PKGS_CFLAGS) $(CFLAGS) -I. -o $@ $<
+ ${LIBTOOL} --mode=compile --tag=CC $(CXX) -c $(EXT_PKGS_CFLAGS) $(CFLAGS) -I. -o $@ $<
- libtool --mode=compile --tag=CC $(CXX) -c $(EXT_PKGS_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I. -o $@ $<
+ ${LIBTOOL} --mode=compile --tag=CC $(CXX) -c $(EXT_PKGS_CFLAGS) $(CFLAGS) $(CPPFLAGS) -I. -o $@ $<
$(LIBRARY_BIN): $(EXPANDED_OBJ_FILES)
- libtool --mode=link --tag=CC $(CXX) -rpath $(PREFIX)/$(LIB) $(EXPANDED_LO_FILES) $(EXT_PKGS_LDFLAGS) $(CFLAGS) $(LDFLAGS) -version-info $(VERSION_INFO) -o $(LIBRARY_BIN)
+ ${LIBTOOL} --mode=link --tag=CC $(CXX) -rpath $(PREFIX)/$(LIB) $(EXPANDED_LO_FILES) $(EXT_PKGS_LDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(LIBRARY_BIN)
$(LIBRARY_BIN): $(EXPANDED_LO_FILES)
libtool --mode=link --tag=CC $(CXX) -rpath $(PREFIX)/$(LIB) $(EXPANDED_LO_FILES) $(EXT_PKGS_LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -version-info $(VERSION_INFO) -o $(LIBRARY_BIN)
+ ${LIBTOOL} --mode=link --tag=CC $(CXX) -rpath $(PREFIX)/$(LIB) $(EXPANDED_LO_FILES) $(EXT_PKGS_LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(LIBRARY_BIN)

View File

@ -1,13 +1,13 @@
$OpenBSD: patch-configure,v 1.4 2012/02/26 15:08:36 ajacoutot Exp $
--- configure.orig Mon Feb 13 22:09:13 2012
+++ configure Sun Feb 26 15:11:03 2012
$OpenBSD: patch-configure,v 1.5 2013/03/23 15:19:08 ajacoutot Exp $
--- configure.orig Mon Mar 18 23:16:44 2013
+++ configure Sat Mar 23 15:36:16 2013
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/bin/sh
#
# Copyright 2011-2012 Yorba Foundation
#
@@ -30,7 +30,8 @@ abort() {
@@ -33,7 +33,8 @@ abort() {
while [ $# != 0 ]
do
option=`echo $1 | sed 's/=.*//'`
@ -17,7 +17,7 @@ $OpenBSD: patch-configure,v 1.4 2012/02/26 15:08:36 ajacoutot Exp $
then
value=`echo $1 | sed 's/.*=//'`
fi
@@ -65,7 +66,7 @@ do
@@ -80,7 +81,7 @@ do
--release) variables="${variables}BUILD_DEBUG=\nBUILD_RELEASE=1\n"
;;
@ -26,7 +26,7 @@ $OpenBSD: patch-configure,v 1.4 2012/02/26 15:08:36 ajacoutot Exp $
then
abort $1
fi
@@ -78,9 +79,9 @@ do
@@ -93,9 +94,9 @@ do
done
rm -f $CONFIG_IN

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/10/24 22:29:50 landry Exp $
@lib lib/libgexiv2.so.${LIBgexiv2_VERSION}

View File

@ -1,5 +1,4 @@
@comment $OpenBSD: PLIST,v 1.3 2012/04/05 12:58:14 ajacoutot Exp $
%%SHARED%%
@comment $OpenBSD: PLIST,v 1.4 2013/03/23 15:19:08 ajacoutot Exp $
include/gexiv2/
include/gexiv2/gexiv2-log.h
include/gexiv2/gexiv2-managed-stream.h
@ -8,10 +7,15 @@ include/gexiv2/gexiv2-preview-image.h
include/gexiv2/gexiv2-preview-properties.h
include/gexiv2/gexiv2-startup.h
include/gexiv2/gexiv2.h
lib/girepository-1.0/
lib/girepository-1.0/GExiv2-0.4.typelib
lib/libgexiv2.a
lib/libgexiv2.la
@lib lib/libgexiv2.so.${LIBgexiv2_VERSION}
lib/pkgconfig/
lib/pkgconfig/gexiv2.pc
share/gir-1.0/
share/gir-1.0/GExiv2-0.4.gir
share/vala/
share/vala/vapi/
share/vala/vapi/gexiv2.vapi