Missing intltool MODULE.

Missing build dependency on ImageMagick (spotted by landry@).
Add x11/gnome/mime-data to run depends as well.
Fix DATADIRNAME the same way the rest of the tree does.
This commit is contained in:
ajacoutot 2013-03-28 07:49:32 +00:00
parent 2261c6ee0c
commit 6bb77d1a6f
3 changed files with 36 additions and 7 deletions

View File

@ -1,26 +1,31 @@
# $OpenBSD: Makefile,v 1.2 2013/03/28 06:49:42 zhuk Exp $ # $OpenBSD: Makefile,v 1.3 2013/03/28 07:49:32 ajacoutot Exp $
PKG_ARCH = * PKG_ARCH = *
COMMENT = MIME types and icons for chemical applications COMMENT = MIME types and icons for chemical applications
DISTNAME = chemical-mime-data-0.1.94 DISTNAME = chemical-mime-data-0.1.94
CATEGORIES = misc CATEGORIES = misc
HOMEPAGE = http://chemical-mime.sourceforge.net/ HOMEPAGE = http://chemical-mime.sourceforge.net/
REVISION = 0
# LGPLv2.1+ # LGPLv2.1+
PERMIT_PACKAGE_CDROM = Yes PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=chemical-mime/} MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=chemical-mime/}
BUILD_DEPENDS = textproc/libxslt \ MODULES = textproc/intltool
BUILD_DEPENDS = graphics/ImageMagick \
textproc/libxslt \
x11/gnome/mime-data x11/gnome/mime-data
RUN_DEPENDS = misc/shared-mime-info \ RUN_DEPENDS = misc/shared-mime-info \
x11/gnome/mime-data \
x11/gtk+2,-guic x11/gtk+2,-guic
AUTOCONF_VERSION= 2.61
SEPARATE_BUILD = Yes SEPARATE_BUILD = Yes
USE_GMAKE = Yes USE_GMAKE = Yes
CONFIGURE_STYLE = gnu CONFIGURE_STYLE = autoconf no-autoheader
CONFIGURE_ARGS += --disable-update-database CONFIGURE_ARGS = --disable-update-database
CONFIGURE_ENV = DATADIRNAME=share
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-aclocal_m4,v 1.1 2013/03/28 07:49:32 ajacoutot Exp $
Fix DATADIRNAME: see LOCALBASE/share/aclocal/{glib-gettext.m4,intltool.m4}
--- aclocal.m4.orig Mon Feb 5 02:09:03 2007
+++ aclocal.m4 Thu Mar 28 08:41:57 2013
@@ -104,6 +104,8 @@ AC_PATH_PROG(INTLTOOL_XGETTEXT, xgettext, xgettext)
# Substitute ALL_LINGUAS so we can use it in po/Makefile
AC_SUBST(ALL_LINGUAS)
+AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
+
# Set DATADIRNAME correctly if it is not set yet
# (copied from glib-gettext.m4)
if test -z "$DATADIRNAME"; then
@@ -119,6 +121,9 @@ if test -z "$DATADIRNAME"; then
dnl in this case.
AC_CHECK_FUNC(bind_textdomain_codeset,
[DATADIRNAME=share], [DATADIRNAME=lib])
+ ;;
+ *-*-openbsd*)
+ [DATADIRNAME=share]
;;
*)
[DATADIRNAME=lib]

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/27 20:03:02 zhuk Exp $ @comment $OpenBSD: PLIST,v 1.2 2013/03/28 07:49:32 ajacoutot Exp $
share/doc/chemical-mime-data/ share/doc/chemical-mime-data/
share/doc/chemical-mime-data/chemical-mime-data.html share/doc/chemical-mime-data/chemical-mime-data.html
share/doc/chemical-mime-data/cmd.css share/doc/chemical-mime-data/cmd.css
@ -17,7 +17,6 @@ share/icons/hicolor/96x96/mimetypes/gnome-mime-chemical.png
share/icons/hicolor/scalable/mimetypes/gnome-mime-chemical.svgz share/icons/hicolor/scalable/mimetypes/gnome-mime-chemical.svgz
share/locale/de/LC_MESSAGES/chemical-mime-data.mo share/locale/de/LC_MESSAGES/chemical-mime-data.mo
share/locale/fr/LC_MESSAGES/chemical-mime-data.mo share/locale/fr/LC_MESSAGES/chemical-mime-data.mo
share/mime-info/
share/mime-info/chemical-mime-data.keys share/mime-info/chemical-mime-data.keys
share/mime-info/chemical-mime-data.mime share/mime-info/chemical-mime-data.mime
share/mime/packages/chemical-mime-data.xml share/mime/packages/chemical-mime-data.xml