summaryrefslogtreecommitdiff
path: root/gs
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
commit9352995934adec8059077af241c35ccd1573bd80 (patch)
tree60286e266b3b31b90b952ac37e12a1ebbcdd2eb6 /gs
parentef3b84d78197acbd45d73a9b1ae44b47b5904290 (diff)
parent880bca260c4ce91554a49b2475232cf5c0ffd447 (diff)
downloadqipackages-fork-9352995934adec8059077af241c35ccd1573bd80.tar.gz
Merge branch 'master' of git://projects.qi-hardware.com/openwrt-packagesHEADmaster
Conflicts: links/Makefile
Diffstat (limited to 'gs')
-rw-r--r--gs/Makefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/gs/Makefile b/gs/Makefile
new file mode 100644
index 0000000..a5cfe76
--- /dev/null
+++ b/gs/Makefile
@@ -0,0 +1,69 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=ghostscript
+PKG_VERSION:=9.00
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://ghostscript.com/releases/
+PKG_MD5SUM:=a402462478b4cdda3e1816899227b845
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/ghostscript
+ SECTION:=utils
+ CATEGORY:=Utilities
+ TITLE:=interpreter for the PostScript language and for PDF
+ URL:=http://pages.cs.wisc.edu/~ghost/
+ DEPENDS:=+libtiff +libiconv +libpng +fontconfig +libfreetype
+endef
+
+define Package/ghostscript/description
+ Ghostscript is an interpreter for the PostScript language and for PDF
+endef
+
+define Build/Prepare
+ $(call Build/Prepare/Default)
+ mkdir $(PKG_BUILD_DIR)/obj
+ #(cd $(PKG_BUILD_DIR); ./configure;);
+ #make -C $(PKG_BUILD_DIR) obj/arch.h obj/genconf obj/echogs
+ for i in genarch genconf echogs; do \
+ gcc -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -I$(PKG_BUILD_DIR)/base -o $(PKG_BUILD_DIR)/obj/$$$$i $(PKG_BUILD_DIR)/base/$$$$i.c; \
+ done
+endef
+
+TARGET_CFLAGS+= \
+ -I$(STAGING_DIR)/usr/lib/libiconv/include \
+
+TARGET_LDFLAGS+= \
+ -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
+ -L$(STAGING_DIR)/usr/lib/libiconv/lib
+
+CONFIGURE_ARGS += \
+ --with-system-libtiff \
+ --with-libiconv=gnu \
+ --without-x \
+ --without-jbig2dec \
+ --without-jasper
+
+MAKE_FLAGS += \
+ EXTRALIBS="-L$(STAGING_DIR)/usr/lib/libiconv/lib -L$(STAGING_DIR)/usr/lib -lfontconfig -lfreetype -liconv -ldl -Wl,-rpath-link=$(STAGING_DIR)/usr/lib" \
+ COMPILE_INITS="0"
+
+define Package/ghostscript/install
+ $(INSTALL_DIR) \
+ $(1)/usr/bin $(1)/usr/share/$(PKG_NAME)/$(PKG_VERSION)
+
+ $(INSTALL_BIN) \
+ $(PKG_BUILD_DIR)/bin/gs \
+ $(1)/usr/bin/gs
+
+ $(CP) $(PKG_BUILD_DIR)/{Resource,lib,iccprofiles} \
+ $(1)/usr/share/$(PKG_NAME)/$(PKG_VERSION)/
+endef
+
+$(eval $(call BuildPackage,ghostscript))