diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/transfig/transfig-native_3.2.5d.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/transfig/transfig-native_3.2.5d.bb b/meta/recipes-devtools/transfig/transfig-native_3.2.5d.bb new file mode 100644 index 0000000000..62b80234c5 --- /dev/null +++ b/meta/recipes-devtools/transfig/transfig-native_3.2.5d.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | SUMMARY = "Utilities for converting XFig figure files" | ||
2 | DESCRIPTION = "This package contains utilities (mainly fig2dev) to \ | ||
3 | handle XFig (Facility for Interactive Generation of figures) files." | ||
4 | HOMEPAGE = "http://www-epb.lbl.gov/xfig/" | ||
5 | SECTION = "console/utils" | ||
6 | PRIORITY = "required" | ||
7 | LICENSE = "xfig" | ||
8 | LIC_FILES_CHKSUM = "file://fig2dev/fig2dev.c;endline=16;md5=6bab01e017409cf9ab21d3e953b793f7" | ||
9 | PR = "r0" | ||
10 | |||
11 | DEPENDS = "imake-native xorg-cf-files-native zlib-native jpeg-native libpng-native libxpm-native" | ||
12 | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/mcj/transfig.${PV}.tar.gz" | ||
14 | |||
15 | SRC_URI[md5sum] = "f9eac7f265668ecbfda6aaf7581989ad" | ||
16 | SRC_URI[sha256sum] = "ae81214177fb05f91f6e43b0b42633b6e0024570cbc6591a3858e12100ce8aaa" | ||
17 | |||
18 | S = "${WORKDIR}/transfig.${PV}" | ||
19 | |||
20 | EXTRA_OEMAKE = "-I${S}" | ||
21 | |||
22 | inherit native | ||
23 | |||
24 | do_configure() { | ||
25 | xmkmf | ||
26 | make Makefiles | ||
27 | |||
28 | # Fix hardcoded references to host build locations | ||
29 | sed -i -e "s|SYSTEMUSRLIBDIR = /usr/lib64|SYSTEMUSRLIBDIR = ${libdir}|g" fig2dev/Makefile | ||
30 | sed -i -e "s|SYSTEMUSRINCDIR = /usr/include|SYSTEMUSRINCDIR = ${includedir}|g" fig2dev/Makefile | ||
31 | sed -i -e "s|XPMINC = -I/usr/include/X11|XPMINC = -I${includedir}/X11|g" fig2dev/Makefile | ||
32 | sed -i -e "s|/usr/lib64|/usr/lib|g" fig2dev/Makefile || true | ||
33 | sed -i -e "s|/usr/lib64|/usr/lib|g" fig2dev/dev/Makefile || true | ||
34 | sed -i -e "s|/usr/local/lib|${libdir}|g" fig2dev/Makefile | ||
35 | sed -i -e "s|/usr/local/lib|${libdir}|g" fig2dev/dev/Makefile | ||
36 | } | ||
37 | |||
38 | do_install() { | ||
39 | oe_runmake install DESTDIR=${D} | ||
40 | } | ||