diff --git a/talimatname/genel/g/gocr/talimat b/talimatname/genel/g/gocr/talimat new file mode 100644 index 000000000..0ccdef7c2 --- /dev/null +++ b/talimatname/genel/g/gocr/talimat @@ -0,0 +1,26 @@ +# Tanım: Açık kaynaklı karakter tanıma (OCR) +# URL: http://jocr.sourceforge.net/index.html +# Paketçi: Cihan_Alkan +# Gerekler: netpbm +# Grup: ofis_düzenleyici + +isim=gocr +surum=0.51 +devir=1 +kaynak=(https://www-e.uni-magdeburg.de/jschulen/ocr/gocr-${surum}.tar.gz) + +derle() { + + cd "$SRC"/$isim-$surum + export CFLAGS=-fPIC + ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib + make -j1 all libs + + mkdir -p "$PKG"/usr/lib + make DESTDIR="$PKG" libdir=/usr/lib/ bindir=/usr/bin install + (cd "$PKG"/usr/lib/ && rm -f libPgm2asc.so && ln -s `echo libPgm2asc*.so` libPgm2asc.so) + install -D -m644 doc/gocr.html "$PKG"/usr/share/doc/gocr/gocr.html + for i in pgm2asc.h gocr.h; do + install -D -m644 src/$i "$PKG"/usr/include/gocr/$i + done +} diff --git a/talimatname/genel/n/netpbm/netpbm-noppmtompeg.patch b/talimatname/genel/n/netpbm/netpbm-noppmtompeg.patch new file mode 100644 index 000000000..8b668da69 --- /dev/null +++ b/talimatname/genel/n/netpbm/netpbm-noppmtompeg.patch @@ -0,0 +1,25 @@ +diff --git a/buildtools/manpage.mk b/buildtools/manpage.mk +index 47d890c..62e613f 100644 +--- a/buildtools/manpage.mk ++++ b/buildtools/manpage.mk +@@ -251,7 +251,6 @@ MAN1 = \ + ppmtolj.1 \ + ppmtomap.1 \ + ppmtomitsu.1 \ +- ppmtompeg.1 \ + ppmtoneo.1 \ + ppmtopcx.1 \ + ppmtopgm.1 \ +diff --git a/converter/ppm/Makefile b/converter/ppm/Makefile +index 003ef8d..09f05cd 100644 +--- a/converter/ppm/Makefile ++++ b/converter/ppm/Makefile +@@ -7,7 +7,7 @@ VPATH=.:$(SRCDIR)/$(SUBDIR) + + include $(BUILDDIR)/config.mk + +-SUBDIRS = hpcdtoppm ppmtompeg ++SUBDIRS = hpcdtoppm + + PORTBINARIES = 411toppm eyuvtoppm gouldtoppm ilbmtoppm imgtoppm \ + leaftoppm mtvtoppm neotoppm \ diff --git a/talimatname/genel/n/netpbm/talimat b/talimatname/genel/n/netpbm/talimat new file mode 100644 index 000000000..92cb0d81e --- /dev/null +++ b/talimatname/genel/n/netpbm/talimat @@ -0,0 +1,126 @@ +# Tanım: Grafik resimlerin manipüle edilmesi için bir araç seti +# URL: http://netpbm.sourceforge.net/ +# Paketçi: Cihan_Alkan +# Gerekler: perl libpng libtiff libxml2 python jbigkit xorg-libx11 jasper +# Grup: kütüphane + +isim=netpbm +surum=10.71.02 +devir=1 + +kaynak=(http://pkgs.fedoraproject.org/repo/pkgs/netpbm/netpbm-10.71.02.tar.xz/24df6a5baf36fa8943f046568726fd57/netpbm-10.71.02.tar.xz + netpbm-noppmtompeg.patch) + +derle() { + cd $isim-$surum + touch converter/ppm/hpcdtoppm/depend.mk + patch -p1 -E --backup --verbose -i ${SRC}/netpbm-noppmtompeg.patch + # use the interactive way + CFLAGS="${CFLAGS} -fPIC" + LDSHLIB="${LDSHLIB} -fPIC" + chmod 755 configure buildtools/stamp-date buildtools/install.sh buildtools/mkinstalldirs + +sed -i -e "s|\$(LDSHLIB)|\$(LDSHLIB) ${LDFLAGS}|g" lib/Makefile || exit 1 + +mv buildtools/pkgconfig_template buildtools/pkgconfig_template.orig + +cat > buildtools/pkgconfig_template <> buildtools/pkgconfig_template || exit 1 + +SOVER="$(grep '^MAJ =' lib/Makefile | awk '{print $3}')" + +#sed -i -e '/config_mk/d' buildtools/configure.pl +./configure < /dev/null + + mkdir -p ${PKG}/usr/lib${LIBDIRSUFFIX}/pkgconfig + mv ${PKG}/usr/pkgconfig_template \ + ${PKG}/usr/lib${LIBDIRSUFFIX}/pkgconfig/netpbm.pc || exit 1 + + rm -rf ${PKG}/usr/man + mkdir -p $PKG/usr/share + mv $PKG/usr/misc $PKG/usr/share/netpbm + rm -f ${PKG}/usr/config_template + rm -f ${PKG}/usr/pkginfo + rm -f ${PKG}/usr/README + rm -f ${PKG}/usr/VERSION + rm -fr ${PKG}/usr/link +}