# Contributor: # Maintainer: pkgname=motif pkgver=2.3.4 pkgrel=0 pkgdesc="The Motif library" url="http://motif.ics.com/" arch="all" license="LGPL2+" depends="" depends_dev="libx11-dev libxft-dev libxt-dev libxpm-dev libxext-dev xbitmaps" makedepends="$depends_dev libtool autoconf automake flex flex-libs flex-dev bison" install="" subpackages="mwm mwm-doc:mwm_doc $pkgname-dev $pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/Motif%20$pkgver%20Source%20Code/motif-$pkgver-src.tgz 01-fix-autoconf.patch 02-fix-format-security.patch 03-no-demos.patch 05-multiarch-specialcase-libdir-X11.patch 06-cast-size_t-to-int.patch 07-fix_lintian_reported_manpage_typos.patch 08-fix_hyphen_in_man_pages.patch 09-fix_typo_in_libxm.patch 10-fix_manpage-has-bad-whatis-entry.patch 11-fix_underlinking.patch 12-fix_buffer_overrun_in_libxm.patch 13-fix_hardcoded_x11rgb_path.patch 14-fix_ac_find_xft.patch 15-link_uil_against_libuil.patch 16-fix-undefined-use-of-sprintf.patch 17-switch-to-system-iswspace.patch 18-updated-fix-1565.patch" _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { # reasons for --disable- flags: #png, jpeg: most programs that use png and jpeg use the libraries directly; # enabling these mainly matters if you want to point the resources at a # png/jpeg image. #printing: this is Xprint support; only CDE uses this, others print directly. #demos: one of the demos can break the build cd "$_builddir" ./autogen.sh \ --build=$CBUILD \ --host=$CHOST \ --disable-demos \ --disable-printing \ --disable-jpeg \ --disable-png \ --enable-xft \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } mwm() { mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib/X11 mv "$pkgdir"/usr/bin/mwm "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/xmbind "$subpkgdir"/usr/bin sed -e 's/\(xterm\)/xfce4-terminal||mrxvt||urxvt||st||\1/g' \ "$pkgdir"/usr/lib/X11/system.mwmrc > "$subpkgdir"/usr/lib/X11/system.mwmrc } mwm_doc() { mkdir -p "$subpkgdir"/usr/share/man/man1 mv "$pkgdir"/usr/share/man/man1/mwm.1 "$subpkgdir"/usr/share/man/man1 mv "$pkgdir"/usr/share/man/man1/xmbind.1 "$subpkgdir"/usr/share/man/man1 mv "$pkgdir"/usr/share/man/man4 "$subpkgdir"/usr/share/man } dev() { mkdir "$subpkgdir" && cd "$subpkgdir" || exit 1 mkdir -p usr/lib usr/bin mv "$pkgdir"/usr/bin/uil usr/bin mv "$pkgdir"/usr/lib/*.a "$pkgdir"/usr/lib/*.so usr/lib mv "$pkgdir"/usr/include usr/ } doc() { mkdir -p "$subpkgdir" && cd "$subpkgdir" || exit 1 mkdir -p usr/share/man/man1 mv "$pkgdir"/usr/share/man/man1/uil.1 usr/share/man/man1 mv "$pkgdir"/usr/share/man/man3 usr/share/man mv "$pkgdir"/usr/share/man/man5 usr/share/man } md5sums="612bb8127d0d31da6e5474edf8a5c247 motif-2.3.4-src.tgz 191cee7af8137e75385153a8f334f50c 01-fix-autoconf.patch 34044aeba20b7e4e9c543c771ce015f6 02-fix-format-security.patch 7302c76677201e0be743fe3bb7f1cc8b 03-no-demos.patch 1adcb4a307af3281722a20bdcaf0d0c9 05-multiarch-specialcase-libdir-X11.patch bb676bc8f0a0d24fbb5c599b72dc827a 06-cast-size_t-to-int.patch ec750525c43510227b834d70239f7af4 07-fix_lintian_reported_manpage_typos.patch d6d836f83e3f9c9b2754f3486c7e3682 08-fix_hyphen_in_man_pages.patch 829ee2d6e21de7463bc12ef35347a000 09-fix_typo_in_libxm.patch b993f84341d5b015ae1059b68af5ab55 10-fix_manpage-has-bad-whatis-entry.patch 96bc3c48348c635e3ba03369632fbf09 11-fix_underlinking.patch 7bb10fb0f0ddaa1c11a43b7110e0f3ff 12-fix_buffer_overrun_in_libxm.patch a283720664a1338157532e0b62164f91 13-fix_hardcoded_x11rgb_path.patch 384688cde092594baf5a9cda9e6ea61d 14-fix_ac_find_xft.patch d4e5e74014da80985290d44e52e6296b 15-link_uil_against_libuil.patch 9a7b47b601ecfc9639c54563e764851a 16-fix-undefined-use-of-sprintf.patch 382bca380e52e377388a131df9c76245 17-switch-to-system-iswspace.patch 6ef23e3053818411b2b75c2f40cbfa22 18-updated-fix-1565.patch" sha256sums="637efa09608e0b8f93465dbeb7c92e58ebb14c4bc1b488040eb79a65af3efbe0 motif-2.3.4-src.tgz cfdd253918b2fdbfa1803d59c7b1a20431a74de4227d20db0343aab866505c21 01-fix-autoconf.patch b679d4274c18fd4e29aad8fc757d0d635ce715329b28e8f46f6952ed9a8f390d 02-fix-format-security.patch c084ed5838c50296e18bd1354e812699e891d4a326c3fdd6e262a7a9e33eea8d 03-no-demos.patch 9cbfdbfec6841f4dd26cebb463b1f2912bc8a08320938d29fb978a38ed256dd7 05-multiarch-specialcase-libdir-X11.patch 85afe090f6f45ed4baef76a7d73cebf70343a6aaee0209cb4a12ac34b48610c4 06-cast-size_t-to-int.patch 90e8ac475990c130345f0a1f9365329599184a4f1112dc863f33f727abee22d1 07-fix_lintian_reported_manpage_typos.patch 5fda6f879619c3d9761b222114e8ee0f548f874cca8ae9122d1b436c96a58d8d 08-fix_hyphen_in_man_pages.patch 6bd8872bf3099e57a3c47752c5c469b449901be0ede07a5301b7c05eb3a0067a 09-fix_typo_in_libxm.patch 54481c6a3990b0c2034b759ee4bb28b03880ff6fc0cbca2e8c3f4263830358b1 10-fix_manpage-has-bad-whatis-entry.patch 86ad1f5c40e1d8f69b927c87e5fcf39b7ce260d4cd156e4cbe9ad0a205ad72cb 11-fix_underlinking.patch 3664820ec7c2639c4ab66f412121c1e8bcb8ce998a6a3743955e4b5ca7824d5e 12-fix_buffer_overrun_in_libxm.patch 60b01485d2ef9302533d660eef91e5023d04e71c9d9e727c147f873f2fe86ba2 13-fix_hardcoded_x11rgb_path.patch 1fe5efb1920c897c979f9292dc93e59d1315c145493fa591ec0000ba6e99eb7e 14-fix_ac_find_xft.patch ab061e0cca20b29f5337fed663eef7560defbdf6d0cf0fe21bf3377aaf516dca 15-link_uil_against_libuil.patch 2bfb2957478f8c66554090dc171f885dc75bf3b0586e3b1abe7c3702f0ef23a2 16-fix-undefined-use-of-sprintf.patch 8039b803716007d6959101592571f82f3be7590b86ba4d3160ae3b5362745a61 17-switch-to-system-iswspace.patch 007dec8a19aae3a59723359bc7457692c0d2a6fbf68fc91b8d6e0e866277c8d7 18-updated-fix-1565.patch" sha512sums="fb1033caa68f25b93282fa6700d5b7856be217b3651072d86e7c93a747df5b31219230998eb93deae22a8fa698e816b1a30e52b3ae88ae1c01c1f0aac59a2af2 motif-2.3.4-src.tgz 6ca24c74233552a4ce3ebb72f17ed277a3feca10bfa50c4680ed1eff917a11bf1f0bd39bcfdaaef1104466065c25c70251ba450f884bca637bc935565d0cdd9d 01-fix-autoconf.patch aff5be25bd25666e6134bc18faaffd54914cc390ca4d89a498efae5aa6dd175ac2b17dc719f7b8d27cff5db2f17b714ddfd5a163f219cad5f5c949cf5eb4786d 02-fix-format-security.patch a54e0bbf95b7af1a2ba3a6031b3d4f36b6516d4b30d97804158c20b7cccda5df9628ed9a3c84ddda7cbd7779781ad065b0a16d39115184eff9fa509f6ec75ec6 03-no-demos.patch 7e5f07e904f7cbea988d6cb7c65fefc5790c84d3bbc77aaa7e3de2fd22a5bd262d5519d56620080d830e2e79e3ffd09ee47d3b72374783b6f52b55eea4da00c0 05-multiarch-specialcase-libdir-X11.patch 605f3cc868c179c74ada49bd4ed40a39364f5d883866c99a9e8ffdb1c559e5e06ebf92a776b6a10df516b7f82a186b0084e55a9be1076498f5b742ca9376febc 06-cast-size_t-to-int.patch 0c4f678e34a00e3281337b06dffbf5f50d345f66b86bb86dd1532d435ce1630443f8ec6245bb773143783d1b5e6e99da5f1e68bd7391e23ee0a10e4fb99ed737 07-fix_lintian_reported_manpage_typos.patch fc955d88cc5c64655ec642786449968e2241c92653fec00bcf8a722d2c206a2ebad16e42529d4ba1905d40e4239e567189b7abd1b9f1c2bdad944cb134094b7c 08-fix_hyphen_in_man_pages.patch 9157f68bf111b081811e08e43b0b67f31364230fd480381668750e130e264867697d3fc461d2011117ee267ebf3801c39d04b24d4c213433ac4a213b6ad8683a 09-fix_typo_in_libxm.patch 8081bddd444423cfe34995cef6c52eebf98d98616f34e9f9eae6240cfbfe8269cab2bdfbac7f85be85371a6f7375452471b32082d4a2dd0cffee242afe115c2f 10-fix_manpage-has-bad-whatis-entry.patch 18c155c13a21df3c95e94d15a8f31def6f40257baadc2ec9e29eef3e10197343824adeef54b75863cd9de25b5f46c4dc88e1e1f991f75c59048fc483a1ea1b43 11-fix_underlinking.patch 666d0e0fe1ac9b63942224b4f49711e2590a99409fbf8893570f9b87b6e4f8f80e14c780fd2c4cdd664c6f130ee929b89bb20e189338c73dc7daf2750aa0c382 12-fix_buffer_overrun_in_libxm.patch 21dd0ba7fd9ed234d5115ad24547961592dd35c3d4843856800a564ff380482af0c5a35e3ce60d3258e4e9a47cb537435b4f08f460064e130d4327a4955b9975 13-fix_hardcoded_x11rgb_path.patch fcb28b3527821c6f4dce0aa86e864f21bf7261ed8a88766858b6f5d4a9ad7affcf94e49c586ae0e87a324a92404fea5965bff2959b2482035e49983d07b5ea45 14-fix_ac_find_xft.patch 8a726e253fa6ed8d14914fd2e2eb0bce8f240051a5fefc04ff56899f908a26300ad3292507b71c1ce65f57e7889e4067e35d0ab4ce15123bffccb606dfd9067f 15-link_uil_against_libuil.patch 2230f0af607111d014b0a648b807df18676a4a1421f10978c59a0a29b02dda38060163619bc54fda19a5186315f98fc8597b2ef6eb8ab7bedb6bd6972a77b38d 16-fix-undefined-use-of-sprintf.patch 0cb0fa3a02a452f067649e02e855d6d3d728e4904bad009aebda9250de0c9fb76d352b6d9a857fcd1f920c5dfc6183f9b12886505c5570164fe92e99e97eea15 17-switch-to-system-iswspace.patch 15cbb37beebf4b06b65a09612a05e4a5b2eaab09d23860332c90aec02cf8a59e0d351dce831eb98a774cb98d15c2ecf695669e5b5e6d0dcce77ce6b2658a8a84 18-updated-fix-1565.patch"