libcaca 0.99.beta19
[git/cygwin-packages/libcaca.git] / libcaca.cygport
CommitLineData
32a402a6 1inherit python python3 ruby autotools # java pypy
ef535a55 2
32a402a6 3NAME="libcaca"
987dffeb
YS
4VERSION=0.99.beta19
5RELEASE=1
6CATEGORY="Libs"
ef535a55
YS
7SUMMARY="Color ASCII art library"
8DESCRIPTION="libcaca is a graphics library that outputs text instead of pixels,
9so that it can work on older video cards or text terminals. It is not unlike
10the famous AAlib library, except that colors are supported. libcaca can use
11almost any virtual terminal to work, and there is also a native X11 driver that
12does not require a text terminal."
987dffeb
YS
13HOMEPAGE="http://caca.zoy.org/wiki/libcaca"
14SRC_URI="http://caca.zoy.org/files/libcaca/libcaca-${VERSION}.tar.gz"
ef535a55
YS
15PATCH_URI="
16 0.99.16-caca-sharp-dllmap.patch
17 0.99.16-plugins.patch
18 0.99.16-ruby.patch
19 0.99.18-java.patch
20 0.99.18-ncurses6.patch
5b59a15d 21 0.99.18-python-errno.patch
ef535a55
YS
22"
23
987dffeb 24PKG_NAMES="${NAME}-bin ${NAME}0 ${NAME}++0 ${NAME}-devel ${NAME}++-devel ${NAME}-doc
32a402a6 25 python-caca python3-caca ruby-caca" # java-caca pypy-caca
ef535a55
YS
26libcaca_bin_SUMMARY="${SUMMARY} (sample programs)"
27libcaca_bin_CONTENTS="--exclude=*-config.* --exclude=html --exclude=pdf \
987dffeb 28 usr/bin/*.exe usr/share/doc/ usr/share/${NAME} usr/share/man/man1/"
ef535a55
YS
29libcaca0_SUMMARY="${SUMMARY} (C runtime)"
30libcaca0_CONTENTS="usr/bin/cygcaca-0.dll"
31libcaca__0_SUMMARY="${SUMMARY} (C++ runtime)"
32libcaca__0_CONTENTS="usr/bin/cygcaca++-0.dll"
33libcaca_devel_SUMMARY="${SUMMARY} (C development)"
34libcaca_devel_CONTENTS="--exclude=*++.* usr/bin/caca-config usr/include/ usr/lib/lib*
35 usr/lib/pkgconfig/ usr/share/man/man1/caca-config.*"
36libcaca___devel_SUMMARY="${SUMMARY} (C++ development)"
37libcaca___devel_CONTENTS="usr/include/*++.h usr/lib/lib*++.* usr/lib/pkgconfig/**++.pc"
38libcaca_doc_SUMMARY="${SUMMARY} (API documentation)"
987dffeb 39libcaca_doc_CONTENTS="usr/share/doc/${NAME}/*/ usr/share/man/man3/"
ef535a55
YS
40java_caca_CATEGORY="Java"
41java_caca_SUMMARY="${SUMMARY} (Java JNI bindings)"
42java_caca_CONTENTS="usr/bin/cygcaca-java.dll ${JAVA_DIR#/}/caca.jar"
51c097e0
YS
43pypy_caca_CATEGORY="Python"
44pypy_caca_SUMMARY="${SUMMARY} (PyPy bindings)"
45pypy_caca_REQUIRES="libcaca-devel" # ctypes.util.find_library('caca')
46pypy_caca_CONTENTS=${PYPY_SITELIB#/}
ef535a55
YS
47python_caca_CATEGORY="Python"
48python_caca_SUMMARY="${SUMMARY} (Python bindings)"
49python_caca_REQUIRES="libcaca-devel" # ctypes.util.find_library('caca')
50python_caca_CONTENTS=${PYTHON_SITELIB#/}
51python3_caca_CATEGORY="Python"
52python3_caca_SUMMARY="${SUMMARY} (Py3K bindings)"
53python3_caca_REQUIRES="libcaca-devel" # ctypes.util.find_library('caca')
54python3_caca_CONTENTS=${PYTHON3_SITELIB#/}
55ruby_caca_CATEGORY="Ruby"
56ruby_caca_SUMMARY="${SUMMARY} (Ruby bindings)"
987dffeb 57ruby_caca_CONTENTS="${RUBY_VENDORARCH#/}/*.so ${RUBY_VENDORLIB#/}/*.rb"
ef535a55 58
987dffeb 59# latex docs FTBFS
ef535a55
YS
60CYGCONF_ARGS="
61 --disable-debug --enable-doc
62 --enable-x11 --with-x --x-libraries=/usr/lib --enable-gl
63 --enable-imlib2 --enable-ncurses --disable-plugins
64 --disable-cocoa --disable-conio --disable-slang --disable-win32
32a402a6 65 --enable-cxx --disable-csharp --disable-java --enable-python --enable-ruby
ef535a55 66 ac_cv_header_windows_h=no ac_cv_header_winsock2_h=no
987dffeb 67 ac_cv_path_LATEX=no
ef535a55
YS
68"
69
70src_install() {
71 cd ${B}
987dffeb
YS
72 cyginstall RUBY_SITEARCHDIR=${RUBY_VENDORARCH} RUBY_SITELIBDIR=${RUBY_VENDORLIB}
73 mv ${D}/usr/share/doc/${NAME}{-dev,}
ef535a55
YS
74 rm -f ${D}/usr/lib/libcucul*.la ${D}/usr/share/doc/libcucul*
75
76 # the python bindings are ctypes-based and Py3K compatible
77 python3into caca
78 dopython3 ${D}${PYTHON_SITELIB}/caca/*.py
79 python3_optimize
80
32a402a6
YS
81 if inherited pypy
82 then
83 pypyinto caca
84 dopypy ${D}${PYTHON_SITELIB}/caca/*.py
85 pypy_optimize
86 fi
51c097e0 87
ef535a55
YS
88 rm -f ${D}/usr/share/man/man1/cacademo.1
89 echo '.so cacafire.1' > ${D}/usr/share/man/man1/cacademo.1
90
91 find ${D}/usr/share/man/man3/ -type f ! -iname 'caca*' ! -iname 'cucul*' -exec rm -f '{}' +
92}
93
94KEEP_LA_FILES="none"
This page took 0.060729 seconds and 5 git commands to generate.