summaryrefslogtreecommitdiff
path: root/packages/netpbm/netpbm_10.28.bb
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-08-03 21:07:05 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-03 21:07:05 +0000
commitfaa3ea865bbec5433bcc950fae04d7554de7ba33 (patch)
tree1e4d49090768b7729ae1344453efe96623f63c24 /packages/netpbm/netpbm_10.28.bb
parent92917970baea2b818611e3a7e8fffc9d27acb2b1 (diff)
parent61c8ed82a9e81ffc00074bc374d4c0a8de76174e (diff)
explicit_merge of f4993582a6bc13487c991548a98342ea6d084c2a
and 7dcc40f11838a5d4253110fb45d10c0cd109a0ff using ancestor 6c249e86f20cab16da75a620e43f22520d6b1f7b to branch 'org.openembedded.nslu2-linux'
Diffstat (limited to 'packages/netpbm/netpbm_10.28.bb')
-rw-r--r--packages/netpbm/netpbm_10.28.bb78
1 files changed, 78 insertions, 0 deletions
diff --git a/packages/netpbm/netpbm_10.28.bb b/packages/netpbm/netpbm_10.28.bb
new file mode 100644
index 0000000000..b4f78a57a1
--- /dev/null
+++ b/packages/netpbm/netpbm_10.28.bb
@@ -0,0 +1,78 @@
+# bitbake configuration file for NetPBM, a command line image (sampled
+# data) processing package derived from PBMPlus
+#
+# For documentation see: http://netpbm.sourceforge.net/doc/
+LICENSE = "GPL MIT Artistic"
+# NOTE: individual command line utilities are covered by different
+# licenses. The compiled and linked command line utilties are
+# subject to the licenses of the libraries they use too - including
+# libpng libz, IJG, and libtiff licenses
+
+SECTION = "console/utils"
+DEPENDS = "jpeg zlib libpng tiff install-native flex-native"
+RDEPENDS = "perl"
+HOMEPAGE = "http://netpbm.sourceforge.net"
+DESCRIPTION = "Netpbm is a toolkit for manipulation of graphic images, including\
+conversion of images between a variety of different formats. There\
+are over 220 separate tools in the package including converters for\
+about 100 graphics formats."
+PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/netpbm/netpbm-${PV}.tgz \
+ file://Makefile.config \
+ file://oeendiangen"
+
+EXTRA_OEMAKE = "ENDIANGEN=${S}/buildtools/oeendiangen TARGET_LD=${LD}"
+
+do_configure() {
+ install -c -m 644 ../Makefile.config .
+ # The following stops the host endiangen program being run and uses
+ # the target endian.h header instead.
+ install -c -m 755 ../oeendiangen buildtools
+}
+
+do_compile() {
+ # need all to get the static library too
+ oe_runmake all default
+}
+
+do_install() {
+ # netpbm makes its own installation package, which must then be
+ # installed to form the dummy installation for ipkg
+ rm -rf ${WORKDIR}/netpbm-package
+ oe_runmake package pkgdir=${WORKDIR}/netpbm-package
+ # now install the stuff from the package into ${D}
+ for d in ${WORKDIR}/netpbm-package/*
+ do
+ # following will cause an error if used
+ case "$d" in
+ */README) ;;
+ */VERSION) ;;
+ */pkginfo) ;;
+ */bin) install -d ${D}${bindir}
+ cp -a "$d"/* ${D}${bindir}
+ rm ${D}${bindir}/doc.url;;
+ */include) install -d ${D}${includedir}
+ cp -a "$d"/* ${D}${includedir};;
+ */link|*/lib) install -d ${D}${libdir}
+ cp -a "$d"/* ${D}${libdir};;
+ */man) install -d ${D}${mandir}
+ cp -a "$d"/* ${D}${mandir};;
+ */misc) install -d ${D}${datadir}/netpbm
+ cp -a "$d"/* ${D}${datadir}/netpbm;;
+ */config_template)
+ install -d ${D}${bindir}
+ sed "/^@/d
+ s!@VERSION@!$(<'${WORKDIR}/netpbm-package/VERSION')!
+ s!@DATADIR@!${datadir}/netpbm!
+ s!@LIBDIR@!${libdir}!
+ s!@LINKDIR@!${libdir}!
+ s!@INCLUDEDIR@!${includedir}!
+ s!@BINDIR@!${bindir}!
+ " "$d" >${D}${bindir}/netpbm-config
+ chmod 755 ${D}${bindir}/netpbm-config;;
+ *) echo "netpbm-package/$d: unknown item" >&2
+ exit 1;;
+ esac
+ done
+}