add libmng 1.0.0 port;
-- The libmng library supports decoding, displaying, encoding, and various other manipulations of Multiple-image Network Graphics (MNG) image files. It uses the zlib compression library, and optionally the JPEG library and/or lcms (little CMS), a color-management library.
This commit is contained in:
parent
a77a76c222
commit
a5b42a993e
31
graphics/libmng/Makefile
Normal file
31
graphics/libmng/Makefile
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# $OpenBSD: Makefile,v 1.1.1.1 2001/02/19 18:51:05 brad Exp $
|
||||||
|
|
||||||
|
DISTNAME= libmng-1.0.0
|
||||||
|
CATEGORIES= graphics
|
||||||
|
NEED_VERSION= 1.336
|
||||||
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||||
|
MASTER_SITE_SUBDIR= libmng
|
||||||
|
|
||||||
|
HOMEPAGE= http://www.libmng.com/
|
||||||
|
|
||||||
|
LIB_DEPENDS= jpeg.62::graphics/jpeg
|
||||||
|
|
||||||
|
MAINTAINER= Brad Smith <bsmith@openbsd.org>
|
||||||
|
|
||||||
|
PERMIT_PACKAGE_CDROM= Yes
|
||||||
|
PERMIT_PACKAGE_FTP= Yes
|
||||||
|
PERMIT_DISTFILES_CDROM= Yes
|
||||||
|
PERMIT_DISTFILES_FTP= Yes
|
||||||
|
|
||||||
|
SEPARATE_BUILD= concurrent
|
||||||
|
CONFIGURE_STYLE= gnu
|
||||||
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
||||||
|
CONFIGURE_ARGS+= --enable-static \
|
||||||
|
--with-jpeg="${LOCALBASE}" --without-lcms
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
@cd ${WRKSRC}/doc/man && \
|
||||||
|
${INSTALL_MAN} libmng.3 ${PREFIX}/man/man3 && \
|
||||||
|
${INSTALL_MAN} mng.5 jng.5 ${PREFIX}/man/man5
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
graphics/libmng/files/md5
Normal file
3
graphics/libmng/files/md5
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 (libmng-1.0.0.tar.gz) = 54c9cb5bf9aa5f76dfa4d63cddea539a
|
||||||
|
RMD160 (libmng-1.0.0.tar.gz) = a2ca6b5aab1b988f4e57905e8c76580330c9d833
|
||||||
|
SHA1 (libmng-1.0.0.tar.gz) = f36b026b4318143402f3683cc1d0421ba31202b6
|
51
graphics/libmng/patches/patch-ltconfig
Normal file
51
graphics/libmng/patches/patch-ltconfig
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
--- ltconfig.orig Fri Mar 3 11:50:28 2000
|
||||||
|
+++ ltconfig Mon Feb 19 12:28:40 2001
|
||||||
|
@@ -1105,6 +1105,9 @@
|
||||||
|
with_gnu_ld=no
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
+openbsd*)
|
||||||
|
+ with_gnu_ld=no
|
||||||
|
+ ;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
|
@@ -1396,10 +1399,21 @@
|
||||||
|
;;
|
||||||
|
|
||||||
|
openbsd*)
|
||||||
|
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
|
||||||
|
- hardcode_libdir_flag_spec='-R$libdir'
|
||||||
|
hardcode_direct=yes
|
||||||
|
hardcode_shlibpath_var=no
|
||||||
|
+ case "$host_os" in
|
||||||
|
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
||||||
|
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
|
||||||
|
+ hardcode_libdir_flag_spec='-R$libdir'
|
||||||
|
+ ;;
|
||||||
|
+ *)
|
||||||
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
|
||||||
|
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
||||||
|
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
|
||||||
|
+ export_dynamic_flag_spec='${wl}-E'
|
||||||
|
+ fi
|
||||||
|
+ ;;
|
||||||
|
+ esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
os2*)
|
||||||
|
@@ -1997,13 +2011,10 @@
|
||||||
|
|
||||||
|
openbsd*)
|
||||||
|
version_type=sunos
|
||||||
|
- if test "$with_gnu_ld" = yes; then
|
||||||
|
- need_lib_prefix=no
|
||||||
|
- need_version=no
|
||||||
|
- fi
|
||||||
|
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
|
||||||
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
||||||
|
shlibpath_var=LD_LIBRARY_PATH
|
||||||
|
+ deplibs_check_method='pass_all'
|
||||||
|
;;
|
||||||
|
|
||||||
|
os2*)
|
82
graphics/libmng/patches/patch-ltmain.sh
Normal file
82
graphics/libmng/patches/patch-ltmain.sh
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
--- ltmain.sh.orig Fri Mar 3 11:50:28 2000
|
||||||
|
+++ ltmain.sh Mon Feb 19 12:30:46 2001
|
||||||
|
@@ -1079,6 +1079,17 @@
|
||||||
|
# These systems don't actually have c library (as such)
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
+ *-*-openbsd*)
|
||||||
|
+ # Do not include libc due to us having libc/libc_r.
|
||||||
|
+ continue
|
||||||
|
+ ;;
|
||||||
|
+ esac
|
||||||
|
+ elif test "$arg" = "-lc_r"; then
|
||||||
|
+ case "$host" in
|
||||||
|
+ *-*-openbsd*)
|
||||||
|
+ # Do not include libc_r directly, use -pthread flag.
|
||||||
|
+ continue
|
||||||
|
+ ;;
|
||||||
|
esac
|
||||||
|
elif test "$arg" = "-lm"; then
|
||||||
|
case "$host" in
|
||||||
|
@@ -1091,6 +1102,10 @@
|
||||||
|
deplibs="$deplibs $arg"
|
||||||
|
;;
|
||||||
|
|
||||||
|
+ -?thread)
|
||||||
|
+ deplibs="$deplibs $arg"
|
||||||
|
+ ;;
|
||||||
|
+
|
||||||
|
-module)
|
||||||
|
module=yes
|
||||||
|
continue
|
||||||
|
@@ -1795,6 +1810,9 @@
|
||||||
|
*-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
|
||||||
|
# these systems don't actually have a c library (as such)!
|
||||||
|
;;
|
||||||
|
+ *-*-openbsd*)
|
||||||
|
+ # Do not include libc due to us having libc/libc_r.
|
||||||
|
+ ;;
|
||||||
|
*)
|
||||||
|
# Add libc to deplibs on all other systems.
|
||||||
|
deplibs="$deplibs -lc"
|
||||||
|
@@ -3555,40 +3573,6 @@
|
||||||
|
# Exit here if they wanted silent mode.
|
||||||
|
test "$show" = : && exit 0
|
||||||
|
|
||||||
|
- echo "----------------------------------------------------------------------"
|
||||||
|
- echo "Libraries have been installed in:"
|
||||||
|
- for libdir in $libdirs; do
|
||||||
|
- echo " $libdir"
|
||||||
|
- done
|
||||||
|
- echo
|
||||||
|
- echo "If you ever happen to want to link against installed libraries"
|
||||||
|
- echo "in a given directory, LIBDIR, you must either use libtool, and"
|
||||||
|
- echo "specify the full pathname of the library, or use \`-LLIBDIR'"
|
||||||
|
- echo "flag during linking and do at least one of the following:"
|
||||||
|
- if test -n "$shlibpath_var"; then
|
||||||
|
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
|
||||||
|
- echo " during execution"
|
||||||
|
- fi
|
||||||
|
- if test -n "$runpath_var"; then
|
||||||
|
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
|
||||||
|
- echo " during linking"
|
||||||
|
- fi
|
||||||
|
- if test -n "$hardcode_libdir_flag_spec"; then
|
||||||
|
- libdir=LIBDIR
|
||||||
|
- eval flag=\"$hardcode_libdir_flag_spec\"
|
||||||
|
-
|
||||||
|
- echo " - use the \`$flag' linker flag"
|
||||||
|
- fi
|
||||||
|
- if test -n "$admincmds"; then
|
||||||
|
- echo " - have your system administrator run these commands:$admincmds"
|
||||||
|
- fi
|
||||||
|
- if test -f /etc/ld.so.conf; then
|
||||||
|
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
|
||||||
|
- fi
|
||||||
|
- echo
|
||||||
|
- echo "See any operating system documentation about shared libraries for"
|
||||||
|
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
|
||||||
|
- echo "----------------------------------------------------------------------"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
1
graphics/libmng/pkg/COMMENT
Normal file
1
graphics/libmng/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
Multiple-image Network Graphics (MNG) reference library
|
6
graphics/libmng/pkg/DESCR
Normal file
6
graphics/libmng/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
The libmng library supports decoding, displaying, encoding, and various
|
||||||
|
other manipulations of Multiple-image Network Graphics (MNG) image files.
|
||||||
|
It uses the zlib compression library, and optionally the JPEG library
|
||||||
|
and/or lcms (little CMS), a color-management library.
|
||||||
|
|
||||||
|
WWW: ${HOMEPAGE}
|
3
graphics/libmng/pkg/PFRAG.shared
Normal file
3
graphics/libmng/pkg/PFRAG.shared
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/02/19 18:51:05 brad Exp $
|
||||||
|
lib/libmng.so.1.0
|
||||||
|
DYNLIBDIR(%B)
|
10
graphics/libmng/pkg/PLIST
Normal file
10
graphics/libmng/pkg/PLIST
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/19 18:51:05 brad Exp $
|
||||||
|
include/libmng.h
|
||||||
|
include/libmng_conf.h
|
||||||
|
include/libmng_types.h
|
||||||
|
lib/libmng.a
|
||||||
|
lib/libmng.la
|
||||||
|
%%SHARED%%
|
||||||
|
man/man3/libmng.3
|
||||||
|
man/man5/jng.5
|
||||||
|
man/man5/mng.5
|
Loading…
x
Reference in New Issue
Block a user