aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2008-08-11 20:03:56 +0800
committerlioux <lioux@FreeBSD.org>2008-08-11 20:03:56 +0800
commit2490e03b43a49b1c3307bd1c118a744224cf2755 (patch)
treed56c1d64e0d32d293f154397bf32b3a88d29c1ff /misc
parent4bbb3d92dc72e8e304af1bebd0475bfa8ceebc67 (diff)
downloadfreebsd-ports-gnome-2490e03b43a49b1c3307bd1c118a744224cf2755.tar.gz
freebsd-ports-gnome-2490e03b43a49b1c3307bd1c118a744224cf2755.tar.zst
freebsd-ports-gnome-2490e03b43a49b1c3307bd1c118a744224cf2755.zip
New port libmetalink version 0.0.2: Metalink library written in C language
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile1
-rw-r--r--misc/libmetalink/Makefile49
-rw-r--r--misc/libmetalink/distinfo3
-rw-r--r--misc/libmetalink/pkg-descr9
-rw-r--r--misc/libmetalink/pkg-plist8
5 files changed, 70 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index a04ad52fd949..857b9e890a5d 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -348,6 +348,7 @@
SUBDIR += lesspipe
SUBDIR += libhome
SUBDIR += libmcal
+ SUBDIR += libmetalink
SUBDIR += libpri
SUBDIR += libpri-bristuff
SUBDIR += libutf
diff --git a/misc/libmetalink/Makefile b/misc/libmetalink/Makefile
new file mode 100644
index 000000000000..efe5495898d1
--- /dev/null
+++ b/misc/libmetalink/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: libmetalink
+# Date created: Mon 11 Aug 2008 11:28:33 UTC
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libmetalink
+PORTVERSION= 0.0.2
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+
+MAINTAINER= lioux@FreeBSD.org
+COMMENT= Metalink library written in C language
+
+LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
+
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= \
+ --with-libexpat-prefix="${LOCALBASE}" \
+ --with-libxml2="no"
+USE_LDCONFIG= yes
+
+# Examples to install
+EXAMPLES_FILES= \
+ doc/sample.c \
+ doc/ubuntu-7_10-server-i386_iso.metalink
+
+.ifndef(NOPORTEXAMPLES)
+PORTEXAMPLES= *
+.endif
+
+post-patch:
+# do not automagically install neither documents nor examples
+ @${REINPLACE_CMD} -E \
+ -e 's|^(install:).*|\1|' \
+ ${WRKSRC}/doc/Makefile.in
+
+post-install:
+# examples
+.ifndef(NOPORTEXAMPLES)
+ @${MKDIR} ${EXAMPLESDIR}
+.for file in ${EXAMPLES_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/misc/libmetalink/distinfo b/misc/libmetalink/distinfo
new file mode 100644
index 000000000000..b67ff1178614
--- /dev/null
+++ b/misc/libmetalink/distinfo
@@ -0,0 +1,3 @@
+MD5 (libmetalink-0.0.2.tar.bz2) = 1fa1f43041ad39e467ea3c96903e95af
+SHA256 (libmetalink-0.0.2.tar.bz2) = 9bf847be9332462606a50125ea5c178ef87a34da64db57f62535914662ed4520
+SIZE (libmetalink-0.0.2.tar.bz2) = 241615
diff --git a/misc/libmetalink/pkg-descr b/misc/libmetalink/pkg-descr
new file mode 100644
index 000000000000..b0421792844d
--- /dev/null
+++ b/misc/libmetalink/pkg-descr
@@ -0,0 +1,9 @@
+[ excerpt from developer's web site with modifications ]
+
+libmetalink is a Metalink library written in C language. It intends
+to allow programs written in C to add Metalink functionality such
+as parsing Metalink XML files.
+
+WWW: http://code.google.com/p/libmetalink/
+
+-- lioux@FreeBSD.org
diff --git a/misc/libmetalink/pkg-plist b/misc/libmetalink/pkg-plist
new file mode 100644
index 000000000000..233497314fd4
--- /dev/null
+++ b/misc/libmetalink/pkg-plist
@@ -0,0 +1,8 @@
+include/metalink/metalink_error.h
+include/metalink/metalink_parser.h
+include/metalink/metalink_types.h
+lib/libmetalink.a
+lib/libmetalink.la
+lib/libmetalink.so
+lib/libmetalink.so.0
+@dirrm include/metalink