diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-09-18 08:47:39 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-09-18 08:47:39 +0000 |
commit | 1191d91edb3d4cbe25dd3037079c1e59a5e513e5 (patch) | |
tree | 13eade1b08c0d3f94b49e1937ba7fc2af4f441b9 /media-libs/svgalib | |
parent | sync stable with 0.9.8 (diff) | |
download | historical-1191d91edb3d4cbe25dd3037079c1e59a5e513e5.tar.gz historical-1191d91edb3d4cbe25dd3037079c1e59a5e513e5.tar.bz2 historical-1191d91edb3d4cbe25dd3037079c1e59a5e513e5.zip |
punt old
Package-Manager: portage-2.1.1
Diffstat (limited to 'media-libs/svgalib')
-rw-r--r-- | media-libs/svgalib/Manifest | 36 | ||||
-rw-r--r-- | media-libs/svgalib/files/digest-svgalib-1.9.21-r1 | 3 | ||||
-rw-r--r-- | media-libs/svgalib/files/digest-svgalib-1.9.23 | 3 | ||||
-rw-r--r-- | media-libs/svgalib/files/svgalib-1.9.21-gentoo.patch | 86 | ||||
-rw-r--r-- | media-libs/svgalib/files/svgalib-1.9.21-linux2.6.patch | 103 | ||||
-rw-r--r-- | media-libs/svgalib/files/svgalib-1.9.24-all_devices.patch | 17 | ||||
-rw-r--r-- | media-libs/svgalib/svgalib-1.9.21-r1.ebuild | 158 | ||||
-rw-r--r-- | media-libs/svgalib/svgalib-1.9.23.ebuild | 152 |
8 files changed, 4 insertions, 554 deletions
diff --git a/media-libs/svgalib/Manifest b/media-libs/svgalib/Manifest index 88a6dc30a289..1d45f4ca896b 100644 --- a/media-libs/svgalib/Manifest +++ b/media-libs/svgalib/Manifest @@ -9,22 +9,10 @@ AUX svgalib-1.9.19-pic.patch 422 RMD160 bb1ea0c30075e2fc1229369a5e3c41481546d8d7 MD5 91fa4baff3dfb211bcb57a068ed7495f files/svgalib-1.9.19-pic.patch 422 RMD160 bb1ea0c30075e2fc1229369a5e3c41481546d8d7 files/svgalib-1.9.19-pic.patch 422 SHA256 4d7550d500070c23b3908907454f03559b138eb271e11ab36c8eceb23c07ad85 files/svgalib-1.9.19-pic.patch 422 -AUX svgalib-1.9.21-gentoo.patch 3122 RMD160 dadb2997d785f11220bfbfad9cecb3ae51ff2f95 SHA1 bf34c16af9d8b4dc5f7ae9d76f1bf246b544da51 SHA256 34acee8b637d9c405a15957128018cd09080e0428ad10a24f9b25b90dab39877 -MD5 8305fd946083dbe190a4fc42512e0e13 files/svgalib-1.9.21-gentoo.patch 3122 -RMD160 dadb2997d785f11220bfbfad9cecb3ae51ff2f95 files/svgalib-1.9.21-gentoo.patch 3122 -SHA256 34acee8b637d9c405a15957128018cd09080e0428ad10a24f9b25b90dab39877 files/svgalib-1.9.21-gentoo.patch 3122 -AUX svgalib-1.9.21-linux2.6.patch 3475 RMD160 2ff9793fba12dcf4e14172637532d0ada69ca865 SHA1 ffb67f62c8cdb4fc01205d6aa1ccab70f9123c3b SHA256 23f6ceb1cdf95ff22f49b120786e6ab1beb63b7c70c9dfa63efe4ba6c96b43ff -MD5 cdbae1a30d329dd53d6818049d64373f files/svgalib-1.9.21-linux2.6.patch 3475 -RMD160 2ff9793fba12dcf4e14172637532d0ada69ca865 files/svgalib-1.9.21-linux2.6.patch 3475 -SHA256 23f6ceb1cdf95ff22f49b120786e6ab1beb63b7c70c9dfa63efe4ba6c96b43ff files/svgalib-1.9.21-linux2.6.patch 3475 AUX svgalib-1.9.23-gentoo.patch 2994 RMD160 01ec997cfb8f63656207d45f0a6d7bc97e64cbb6 SHA1 e19376745b8e125a8bf98cec7845934b7874855d SHA256 9bce706a598aaf53588b39ea2fa399416ae8390cd2f4cae62dab12b4701fdda8 MD5 690144017f69486a911d88c0932a7d45 files/svgalib-1.9.23-gentoo.patch 2994 RMD160 01ec997cfb8f63656207d45f0a6d7bc97e64cbb6 files/svgalib-1.9.23-gentoo.patch 2994 SHA256 9bce706a598aaf53588b39ea2fa399416ae8390cd2f4cae62dab12b4701fdda8 files/svgalib-1.9.23-gentoo.patch 2994 -AUX svgalib-1.9.24-all_devices.patch 386 RMD160 6750760283139e8cb247e6e1908a1d4582c272f6 SHA1 f2b0d506b56952a069b0f6cf5998f394306c6f89 SHA256 62fc518361db69912ad21e24231d328060d4cec510f112f2e140841c70a00e5b -MD5 019300d0c270a3ee49fee6ab848b3a8f files/svgalib-1.9.24-all_devices.patch 386 -RMD160 6750760283139e8cb247e6e1908a1d4582c272f6 files/svgalib-1.9.24-all_devices.patch 386 -SHA256 62fc518361db69912ad21e24231d328060d4cec510f112f2e140841c70a00e5b files/svgalib-1.9.24-all_devices.patch 386 AUX svgalib-1.9.24-linux2.6.patch 4553 RMD160 16b3470b24595e781530cb0cafe0fc9f71511e90 SHA1 68a84e75301a24350ca504066bf2167f8b01cf49 SHA256 b17f37e1d5292dbe78d7c69d56931d7a496574de4e6cde8b4c7e8eca018678fd MD5 5bb3810d9312da4bfdebd50a07038b10 files/svgalib-1.9.24-linux2.6.patch 4553 RMD160 16b3470b24595e781530cb0cafe0fc9f71511e90 files/svgalib-1.9.24-linux2.6.patch 4553 @@ -49,18 +37,8 @@ AUX svgalib.udev.rules.d 55 RMD160 05987efb133e53358a8f1aeb69895b8f44fb9f80 SHA1 MD5 d15d5d3cf26776d90faa44da5c9fa02a files/svgalib.udev.rules.d 55 RMD160 05987efb133e53358a8f1aeb69895b8f44fb9f80 files/svgalib.udev.rules.d 55 SHA256 ae60596a1b5fdc0e6cc9d625f363d869f8674e4da631cc341e663b22870f7d81 files/svgalib.udev.rules.d 55 -DIST svgalib-1.9.21.tar.gz 950274 RMD160 b1aa727edfb796c523bcf6123734f8a0dc9e36fa SHA1 b13b405e1574331dccc4ad8deb372c09e87221af SHA256 5e053650e147ed0d0c16dc3956ec04318d1224628aad1c2d6194fcc1d8d1a2e5 -DIST svgalib-1.9.23.tar.gz 982053 RMD160 49915a5d4b0c2d81d46a721a48bc489747ccb43b SHA1 af4fc048ba589669fe54e0d528355e7612e5edcb SHA256 e3b85c40ac3cf532b4f3496fe477bfd0d077fd1c702b83356548c4375b4fae5a DIST svgalib-1.9.24.tar.gz 986612 RMD160 5ecab1a6945b8b3747850a0fa283fb2bf558e24d SHA1 d3c182c4129af98394e1a6847157f410295d6f68 SHA256 12f74fd44c13991ece0fb4bb0d4d95366ba1de2758c7eec10b59290bc6237ca1 DIST svgalib-1.9.25.tar.gz 987084 RMD160 e987f65ddb5610c575183e4a2058423eab3ce1e4 SHA1 187b2156dde0e8f397b130d14cc35237386273d6 SHA256 2ad5da713a6bd69622c483de4e4f448ed2b82f7b954db43dc477d5b6b12d8602 -EBUILD svgalib-1.9.21-r1.ebuild 4619 RMD160 73865c87089435aebc8579263c2ec69e436b1cb7 SHA1 c553e76c9b84badf6f9d2218b1aeb1e4b2975887 SHA256 9de89ada00c33ab2fb5d1e3b0032bdebedd1c9c69b15819477522c0255a3d020 -MD5 883ab8f536976b79259747f70b41046d svgalib-1.9.21-r1.ebuild 4619 -RMD160 73865c87089435aebc8579263c2ec69e436b1cb7 svgalib-1.9.21-r1.ebuild 4619 -SHA256 9de89ada00c33ab2fb5d1e3b0032bdebedd1c9c69b15819477522c0255a3d020 svgalib-1.9.21-r1.ebuild 4619 -EBUILD svgalib-1.9.23.ebuild 4510 RMD160 3edc7b2235fa0aca804aed68f7515aaa0f067f3f SHA1 8a4b91e8f4595ffc92d6a5337600d47d079b1801 SHA256 e033ee559947598e0b11002d48c03c9947d42392a083bb87d3dc56885f811229 -MD5 c26062ed56860238444ea04729203cf3 svgalib-1.9.23.ebuild 4510 -RMD160 3edc7b2235fa0aca804aed68f7515aaa0f067f3f svgalib-1.9.23.ebuild 4510 -SHA256 e033ee559947598e0b11002d48c03c9947d42392a083bb87d3dc56885f811229 svgalib-1.9.23.ebuild 4510 EBUILD svgalib-1.9.24.ebuild 4574 RMD160 55f4f339f32971f21bad55567bfda8931618d9d3 SHA1 1eda0abb2899bd9ae6da5b76250d6fdf3a5b6f81 SHA256 3fcbdbadfc9cd2be20885369ad7b4342951694328f45ab11785a462c0785f003 MD5 c02e2e2938cc26e5f24bf476cb64047e svgalib-1.9.24.ebuild 4574 RMD160 55f4f339f32971f21bad55567bfda8931618d9d3 svgalib-1.9.24.ebuild 4574 @@ -77,12 +55,6 @@ MISC metadata.xml 303 RMD160 1bc9684eb1b1f3b3c360df61b39b143ce2090916 SHA1 c273b MD5 69845288d94413820ea3441dc9e60b24 metadata.xml 303 RMD160 1bc9684eb1b1f3b3c360df61b39b143ce2090916 metadata.xml 303 SHA256 08bfae407186f5088cd2b118396e784d8eaf7ab82ecc162cf8a73ff9cabcf717 metadata.xml 303 -MD5 58bd6f624f558d9c957598b073c96ce8 files/digest-svgalib-1.9.21-r1 244 -RMD160 bc2b9793984d226a01fb976712006da1b5492cc8 files/digest-svgalib-1.9.21-r1 244 -SHA256 d235909f35bd9b1f9a928446c0d9b953a6ce755785530504e2c63263a120c186 files/digest-svgalib-1.9.21-r1 244 -MD5 e4ca8ca64f073ba62a3bcf360fac926f files/digest-svgalib-1.9.23 244 -RMD160 145efcc02eed8249160a7d229335f491c69267b1 files/digest-svgalib-1.9.23 244 -SHA256 d49c68c0bd18d433f11874c9b20c739e53ec5096f54c2703b7240df9c7eeacfa files/digest-svgalib-1.9.23 244 MD5 2fade38f6280418b878fc9ec6425b611 files/digest-svgalib-1.9.24 244 RMD160 cb17655aaf1caf0ec167a2faaf38fb1e9ced5e83 files/digest-svgalib-1.9.24 244 SHA256 e9aeec91a16ef008173ec45162e2680a29fdabee914c2a516acc1da133a98c86 files/digest-svgalib-1.9.24 244 @@ -90,9 +62,9 @@ MD5 ce3612b32d5d810bc066f94884ad1651 files/digest-svgalib-1.9.25 244 RMD160 b58d83ff0bf0aece90a1a8fac86924e53ba1a704 files/digest-svgalib-1.9.25 244 SHA256 ddcc343b075e1ebcbceb0952eaa273fb40fd3a0bc00bb00b7d64e1c500a6cac4 files/digest-svgalib-1.9.25 244 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.4 (GNU/Linux) +Version: GnuPG v1.4.5 (GNU/Linux) -iD8DBQFEuw6WamhnQswr0vIRAlIpAJ9/guu4mLROkodKBKSljEFISnO3lQCfXldC -ORchgyx2BSVd7STcE8bBCbw= -=by+Y +iD8DBQFFDl1LamhnQswr0vIRAtvOAKCybTlCalRrosso1Ne/6stkTTm8SwCeLIKG +Hzr91B8F6czn2L3rk/H7tk4= +=yuZH -----END PGP SIGNATURE----- diff --git a/media-libs/svgalib/files/digest-svgalib-1.9.21-r1 b/media-libs/svgalib/files/digest-svgalib-1.9.21-r1 deleted file mode 100644 index 53a90c62b444..000000000000 --- a/media-libs/svgalib/files/digest-svgalib-1.9.21-r1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 1bd8892ee38481051e4b4d85008c86be svgalib-1.9.21.tar.gz 950274 -RMD160 b1aa727edfb796c523bcf6123734f8a0dc9e36fa svgalib-1.9.21.tar.gz 950274 -SHA256 5e053650e147ed0d0c16dc3956ec04318d1224628aad1c2d6194fcc1d8d1a2e5 svgalib-1.9.21.tar.gz 950274 diff --git a/media-libs/svgalib/files/digest-svgalib-1.9.23 b/media-libs/svgalib/files/digest-svgalib-1.9.23 deleted file mode 100644 index 01f6dac06d4e..000000000000 --- a/media-libs/svgalib/files/digest-svgalib-1.9.23 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 b51f7c791f0a64a856beec283bcdc0ba svgalib-1.9.23.tar.gz 982053 -RMD160 49915a5d4b0c2d81d46a721a48bc489747ccb43b svgalib-1.9.23.tar.gz 982053 -SHA256 e3b85c40ac3cf532b4f3496fe477bfd0d077fd1c702b83356548c4375b4fae5a svgalib-1.9.23.tar.gz 982053 diff --git a/media-libs/svgalib/files/svgalib-1.9.21-gentoo.patch b/media-libs/svgalib/files/svgalib-1.9.21-gentoo.patch deleted file mode 100644 index 3c8796eac391..000000000000 --- a/media-libs/svgalib/files/svgalib-1.9.21-gentoo.patch +++ /dev/null @@ -1,86 +0,0 @@ -Make install targets more friendly ---- svgalib-1.9.21/Makefile -+++ svgalib-1.9.21/Makefile -@@ -78,10 +78,6 @@ default: - - installheaders: - @echo Installing header files in $(includedir). -- @if [ -f /usr/include/vga.h ]; then \ -- rm -f /usr/include/vga.h /usr/include/vgagl.h; \ -- echo Old header files in /usr/include removed.; \ -- fi - @mkdir -p $(includedir) - @cp $(SRCDIR)/src/vga.h $(includedir)/vga.h - @chmod a+r $(includedir)/vga.h -@@ -95,16 +91,6 @@ installheaders: - @chmod a+r $(includedir)/vgakeyboard.h - - installsharedlib: $(SHAREDLIBS) $(SVGALIBSHAREDSTUBS) -- @if [ -f /usr/lib/libvga.sa ]; then \ -- rm -f /usr/lib/libvga.sa /usr/lib/libvgagl.sa; \ -- echo Old stubs in /usr/lib removed.; \ -- fi --ifndef KEEPSHAREDLIBS -- @echo "Removing shared library images (old & current)..." -- @for i in $(OBSOLETELDIRS); do \ -- rm -f `echo $(OBSOLETESHAREDIMAGES) | sed s?/lib/?$$i?g`; \ -- done --endif - @echo Installing shared library image as \ - $(addprefix $(sharedlibdir)/,$(notdir $(SHAREDLIBS))). - @for foo in $(notdir $(SHAREDLIBS)); do \ -@@ -118,10 +104,8 @@ endif - installstaticlib: static - @echo Installing static libraries in $(libdir). - @mkdir -p $(libdir) -- @rm -f /usr/lib/libvga.a - @$(INSTALL_DATA) staticlib/libvga.a $(libdir)/libvga.a - @chmod a+r $(libdir)/libvga.a -- @rm -f /usr/lib/libvgagl.a - @$(INSTALL_DATA) staticlib/libvgagl.a $(libdir)/libvgagl.a - @chmod a+r $(libdir)/libvgagl.a - -@@ -130,14 +114,6 @@ installutils: textutils $(LRMI) - echo No $(bindir) directory, creating it.; \ - mkdir -p $(bindir); \ - fi -- @if [ -f /usr/bin/restorefont ]; then \ -- echo Removing old utilities in /usr/bin.; \ -- for x in $(UTILS); do rm -f /usr/bin/$$x; done; \ -- fi -- @if [ -f /usr/bin/convfont ]; then \ -- echo Removing inappropriate utilities in /usr/bin.; \ -- rm -f /usr/bin/convfont /usr/bin/setmclk; \ -- fi - @echo Installing textmode utilities in $(bindir): - @echo "restorefont: Save/restore textmode font." - @$(INSTALL_PROGRAM) utils/restorefont $(bindir) -@@ -213,7 +189,7 @@ installdev: - lib3dkit-install: - (cd threeDKit/; $(MAKE) install) - --install: uninstall installheaders $(INSTALLSHAREDLIB) installconfig \ -+install: installheaders $(INSTALLSHAREDLIB) installconfig \ - $(INSTALLSTATICLIB) $(INSTALLUTILS) $(INSTALLMAN) $(INSTALLMODULE) $(INSTALLDEV) \ - lib3dkit-install - @echo ---- svgalib-1.9.21/Makefile.cfg -+++ svgalib-1.9.21/Makefile.cfg -@@ -44,7 +44,7 @@ CONFDIR = $(SRCDIR)/src/config - # Common prefix for installation directories. - # NOTE: This directory must exist when you start the install. - TOPDIR= --prefix = $(TOPDIR)/usr/local -+prefix = $(TOPDIR)/usr - exec_prefix = $(prefix) - - # Directory where the shared stubs and static library will be installed. -@@ -130,7 +130,7 @@ INSTALLMAN = installman - # MAKEWHATIS = makewhatis # Beware, this will really need a few minutes! - - # Comment this out if you use devfs only and don't want to make svga nodes --INSTALLDEV = installdev -+#INSTALLDEV = installdev - - # Select which makefile to use to install the module, or comment both out if - # you are going to install the kernel module manually diff --git a/media-libs/svgalib/files/svgalib-1.9.21-linux2.6.patch b/media-libs/svgalib/files/svgalib-1.9.21-linux2.6.patch deleted file mode 100644 index d1a34a028e74..000000000000 --- a/media-libs/svgalib/files/svgalib-1.9.21-linux2.6.patch +++ /dev/null @@ -1,103 +0,0 @@ - - touch up the Makefile to let the ebuild handle the module details - - fix support with io remap stuff in newer kernels - ---- svgalib/kernel/svgalib_helper/Makefile.alt -+++ svgalib/kernel/svgalib_helper/Makefile.alt -@@ -37,7 +37,7 @@ - CFLAGS += -DSVGALIB_HELPER_MAJOR=$(SVGALIB_HELPER_MAJOR) - - ifeq (1,$(findstring 1,$(MODVER))) -- CFLAGS += -DMODVERSIONS -include $(INCLUDEDIR)/linux/modversions.h -+ CFLAGS += -DMODVERSIONS -DCONFIG_MODVERSIONS=1 - endif - - TARGET = svgalib_helper -@@ -50,7 +50,8 @@ - endif - endif - --all: .depend $(OBJS) -+modules: $(OBJS) -+all: .depend modules - - $(TARGET).o: $(SRC:.c=.o) - $(LD) -r $^ -o $@ -@@ -61,8 +62,8 @@ - install: device modules_install - - modules_install: $(OBJS) -- mkdir -p /lib/modules/$(VER)/kernel/misc -- install -m 0644 -c $(OBJS) /lib/modules/$(VER)/kernel/misc -+ mkdir -p $(TOPDIR)/lib/modules/$(VER)/kernel/misc -+ install -m 0644 -c $(OBJS) $(TOPDIR)/lib/modules/$(VER)/kernel/misc - - device: - rm -f /dev/svgalib_helper* /dev/svga_helper* /dev/svga /dev/svga? ---- svgalib/kernel/svgalib_helper/kernel26compat.h -+++ svgalib/kernel/svgalib_helper/kernel26compat.h -@@ -10,7 +10,7 @@ - # define PCI_GET_CLASS pci_find_class - # define PCI_GET_DEVICE pci_find_device - --# if defined (PG_chainlock) -+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,3) - # define my_io_remap_page_range(vma, start, ofs, len, prot) \ - io_remap_page_range(vma,start,ofs,len,prot) - # else -@@ -50,8 +50,13 @@ - # define DEVFS_MK_SYMLINK(a,b) - #endif - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) - # define my_io_remap_page_range(vma, start, ofs, len, prot) \ - io_remap_page_range(vma,start,ofs,len,prot) -+#else -+# define my_io_remap_page_range(vma, start, ofs, len, prot) \ -+ io_remap_pfn_range(vma,start,ofs>>PAGE_SHIFT,len,prot) -+#endif - - # define pci_present() 1 - -@@ -84,6 +84,21 @@ - # define SLH_SYSFS_REGISTER \ - svgalib_helper_class = class_create(THIS_MODULE, "svgalib_helper"); - -+ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) -+ -+# define SLH_SYSFS_ADD_CONTROL \ -+ class_device_create(svgalib_helper_class, NULL, \ -+ MKDEV(SVGALIB_HELPER_MAJOR, 0), \ -+ NULL, "svga"); -+ -+# define SLH_SYSFS_ADD_DEVICE(_name, _minor) \ -+ class_device_create(svgalib_helper_class, NULL, \ -+ MKDEV(SVGALIB_HELPER_MAJOR, _minor), \ -+ &sh_pci_devs[_minor]->dev->dev, _name); -+#else -+ -+ - # define SLH_SYSFS_ADD_CONTROL \ - class_device_create(svgalib_helper_class, \ - MKDEV(SVGALIB_HELPER_MAJOR, 0), \ -@@ -93,6 +108,8 @@ - class_device_create(svgalib_helper_class, \ - MKDEV(SVGALIB_HELPER_MAJOR, _minor), \ - &sh_pci_devs[_minor]->dev->dev, _name); -+#endif -+ - - # define SLH_SYSFS_REMOVE_DEVICE(i) \ - class_destroy(svgalib_helper_class); -@@ -148,6 +148,11 @@ - # define SLH_SYSFS_UNREGISTER - #endif - -+/* gregkh was so kind as to remove a ton of PCI defines in linux-2.6.15 */ -+#if !defined(PCI_VENDOR_ID_RENDITION) -+# define PCI_VENDOR_ID_RENDITION 0x1163 -+#endif -+ - #if (defined MINOR) - # define my_minor(x) MINOR(x) - #else diff --git a/media-libs/svgalib/files/svgalib-1.9.24-all_devices.patch b/media-libs/svgalib/files/svgalib-1.9.24-all_devices.patch deleted file mode 100644 index 53d4cf2a1a5b..000000000000 --- a/media-libs/svgalib/files/svgalib-1.9.24-all_devices.patch +++ /dev/null @@ -1,17 +0,0 @@ -all_devices is an exported symbol so we cant declare it static - -Fix by Pablo De Nápoli - -http://bugs.gentoo.org/133936 - ---- svgalib-1.9.24/kernel/svgalib_helper/main.c -+++ svgalib-1.9.24/kernel/svgalib_helper/main.c -@@ -55,7 +55,7 @@ - #include "displaystart.h" - - int debug=0; --static int all_devices=0; -+int all_devices=0; - int num_devices=0; - - static char *sdev_id="svgalib_helper"; diff --git a/media-libs/svgalib/svgalib-1.9.21-r1.ebuild b/media-libs/svgalib/svgalib-1.9.21-r1.ebuild deleted file mode 100644 index cedb3b23b558..000000000000 --- a/media-libs/svgalib/svgalib-1.9.21-r1.ebuild +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.21-r1.ebuild,v 1.3 2006/01/05 03:06:10 vapier Exp $ - -inherit eutils flag-o-matic toolchain-funcs linux-mod - -DESCRIPTION="A library for running svga graphics on the console" -HOMEPAGE="http://www.svgalib.org/" -SRC_URI="http://www.arava.co.il/matan/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="-* x86" -IUSE="build no-helper" - -DEPEND="" - -MODULE_NAMES="svgalib_helper(misc:${S}/kernel/svgalib_helper)" -BUILD_TARGETS="default" -MODULESD_SVGALIB_HELPER_ADDITIONS="probeall /dev/svga svgalib_helper" - -pkg_setup() { - linux-mod_pkg_setup - BUILD_PARAMS="KDIR=${KV_DIR}" -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Misc makefile clean ups - epatch "${FILESDIR}"/${P}-gentoo.patch - - # Get it to work with kernel 2.6 - epatch "${FILESDIR}"/${PN}-1.9.21-linux2.6.patch - - # -fPIC does work for lrmi, see bug #51698 - epatch "${FILESDIR}"/${PN}-1.9.19-pic.patch - - # Don't let the ebuild screw around with ld.so.conf #64829 - epatch "${FILESDIR}"/${PN}-1.9.19-dont-touch-ld.conf.patch - - # make sure the define wrapper is used #91118 - sed -i -e 's:devfs_mk_symlink:DEVFS_MK_SYMLINK:' kernel/svgalib_helper/main.c - - use no-helper && sed -i '/^# NO_HELPER/s:# ::' Makefile.cfg - - # Don't strip stuff, let portage do it - sed -i '/^INSTALL_PROGRAM/s: -s : :' Makefile.cfg -} - -src_compile() { - export CC="$(tc-getCC)" - - # First build static - make OPTIMIZE="${CFLAGS}" static || die "Failed to build static libraries!" - # Have to remove for shared to build ... - rm -f src/svgalib_helper.h - # Then build shared ... - make OPTIMIZE="${CFLAGS}" shared || die "Failed to build shared libraries!" - # Missing in some cases ... - ln -s libvga.so.${PV} sharedlib/libvga.so - # Build lrmi and tools ... - make OPTIMIZE="${CFLAGS}" LDFLAGS="-L../sharedlib" \ - textutils lrmi utils \ - || die "Failed to build libraries and utils!" - # Build the gl stuff tpp - make OPTIMIZE="${CFLAGS}" -C gl || die "Failed to build gl!" - make OPTIMIZE="${CFLAGS}" -C gl libvgagl.so.${PV} \ - || die "Failed to build libvgagl.so.${PV}!" - # Missing in some cases ... - ln -s libvgagl.so.${PV} sharedlib/libvgagl.so - rm -f src/svgalib_helper.h - make OPTIMIZE="${CFLAGS}" -C src libvga.so.${PV} \ - || die "Failed to build libvga.so.${PV}!" - cp -pPR src/libvga.so.${PV} sharedlib/ - # Build threeDKit ... - make OPTIMIZE="${CFLAGS}" LDFLAGS='-L../sharedlib' \ - -C threeDKit lib3dkit.a || die "Failed to build threeDKit!" - # Build demo's ... - make OPTIMIZE="${CFLAGS} -I../gl" LDFLAGS='-L../sharedlib' \ - demoprogs || die "Failed to build demoprogs!" - - ! use build && ! use no-helper && linux-mod_src_compile -} - -src_install() { - local x= - - dodir /etc/svgalib /usr/{include,lib,bin,share/man} - - make \ - TOPDIR="${D}" OPTIMIZE="${CFLAGS}" INSTALLMODULE="" \ - install || die "Failed to install svgalib!" - ! use build && ! use no-helper && linux-mod_src_install - - insinto /usr/include - doins gl/vgagl.h - dolib.a staticlib/libvga.a - dolib.a gl/libvgagl.a - dolib.a threeDKit/lib3dkit.a - dolib.so gl/libvgagl.so.${PV} - local abiver=$(sed -n '/^MAJOR_VER.*=/{s:.*=[ ]*::;p}' Makefile.cfg) - for x in lib3dkit libvga libvgagl ; do - dosym ${x}.so.${PV} /usr/lib/${x}.so - dosym ${x}.so.${PV} /usr/lib/${x}.so.${abiver} - done - - insinto /usr/include - doins src/vga.h gl/vgagl.h src/mouse/vgamouse.h src/joystick/vgajoystick.h - doins src/keyboard/vgakeyboard.h - - if best_version '>=sys-fs/udev-045' ; then - insinto /etc/udev/rules.d - newins "${FILESDIR}"/svgalib.udev.rules.d 30-svgalib.rules - elif best_version sys-fs/udev ; then - insinto /etc/udev/permissions.d - newins "${FILESDIR}"/svgalib.udev.perms.d 30-svgalib.permissions - elif best_version sys-fs/devfsd ; then - insinto /etc/devfs.d - newins "${FILESDIR}"/svgalib.devfs svgalib - fi - - exeinto /usr/lib/svgalib/demos - for x in "${S}"/demos/* ; do - [[ -x ${x} ]] && doexe ${x} - done - - cd "${S}"/threeDKit - exeinto /usr/lib/svgalib/threeDKit - local THREED_PROGS="plane wrapdemo" - doexe ${THREED_PROGS} - - cd "${S}" - dodoc 0-README - cd "${S}"/doc - dodoc CHANGES DESIGN TODO - docinto txt - dodoc Driver-programming-HOWTO README.* add_driver svgalib.lsm - - mv "${D}"/usr/man/* "${D}"/usr/share/man - rmdir "${D}"/usr/man -} - -pkg_postinst() { - ! use build && ! use no-helper && linux-mod_pkg_postinst - [[ ${ROOT} != "/" ]] && return 0 - - if [[ -e /dev/.devfsd ]] ; then - ebegin "Restarting devfsd to reread devfs rules" - killall -HUP devfsd - eend $? - elif [[ -e /dev/.udev ]] ; then - ebegin "Restarting udev to reread udev rules" - udevstart - eend $? - fi -} diff --git a/media-libs/svgalib/svgalib-1.9.23.ebuild b/media-libs/svgalib/svgalib-1.9.23.ebuild deleted file mode 100644 index e9270db9e119..000000000000 --- a/media-libs/svgalib/svgalib-1.9.23.ebuild +++ /dev/null @@ -1,152 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.23.ebuild,v 1.2 2006/01/05 03:06:10 vapier Exp $ - -inherit eutils flag-o-matic toolchain-funcs linux-mod - -DESCRIPTION="A library for running svga graphics on the console" -HOMEPAGE="http://www.svgalib.org/" -SRC_URI="http://www.arava.co.il/matan/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="-* ~x86" -IUSE="build no-helper" - -DEPEND="" - -MODULE_NAMES="svgalib_helper(misc:${S}/kernel/svgalib_helper)" -BUILD_TARGETS="default" -MODULESD_SVGALIB_HELPER_ADDITIONS="probeall /dev/svga svgalib_helper" - -pkg_setup() { - linux-mod_pkg_setup - BUILD_PARAMS="KDIR=${KV_DIR}" -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # Misc makefile clean ups - epatch "${FILESDIR}"/${PN}-1.9.23-gentoo.patch - - # Get it to work with kernel 2.6 - epatch "${FILESDIR}"/${PN}-1.9.21-linux2.6.patch - - # -fPIC does work for lrmi, see bug #51698 - epatch "${FILESDIR}"/${PN}-1.9.19-pic.patch - - # Don't let the ebuild screw around with ld.so.conf #64829 - epatch "${FILESDIR}"/${PN}-1.9.19-dont-touch-ld.conf.patch - - use no-helper && sed -i '/^# NO_HELPER/s:# ::' Makefile.cfg - - # Don't strip stuff, let portage do it - sed -i '/^INSTALL_PROGRAM/s: -s : :' Makefile.cfg -} - -src_compile() { - export CC=$(tc-getCC) - - # First build static - make OPTIMIZE="${CFLAGS}" static || die "Failed to build static libraries!" - # Have to remove for shared to build ... - rm -f src/svgalib_helper.h - # Then build shared ... - make OPTIMIZE="${CFLAGS}" shared || die "Failed to build shared libraries!" - # Missing in some cases ... - ln -s libvga.so.${PV} sharedlib/libvga.so - # Build lrmi and tools ... - make OPTIMIZE="${CFLAGS}" LDFLAGS="-L../sharedlib" \ - textutils lrmi utils \ - || die "Failed to build libraries and utils!" - # Build the gl stuff tpp - make OPTIMIZE="${CFLAGS}" -C gl || die "Failed to build gl!" - make OPTIMIZE="${CFLAGS}" -C gl libvgagl.so.${PV} \ - || die "Failed to build libvgagl.so.${PV}!" - # Missing in some cases ... - ln -s libvgagl.so.${PV} sharedlib/libvgagl.so - rm -f src/svgalib_helper.h - make OPTIMIZE="${CFLAGS}" -C src libvga.so.${PV} \ - || die "Failed to build libvga.so.${PV}!" - cp -pPR src/libvga.so.${PV} sharedlib/ - # Build threeDKit ... - make OPTIMIZE="${CFLAGS}" LDFLAGS='-L../sharedlib' \ - -C threeDKit lib3dkit.a || die "Failed to build threeDKit!" - # Build demo's ... - make OPTIMIZE="${CFLAGS} -I../gl" LDFLAGS='-L../sharedlib' \ - demoprogs || die "Failed to build demoprogs!" - - ! use build && ! use no-helper && linux-mod_src_compile -} - -src_install() { - local x= - - dodir /etc/svgalib /usr/{include,lib,bin,share/man} - - make \ - TOPDIR="${D}" OPTIMIZE="${CFLAGS}" INSTALLMODULE="" \ - install || die "Failed to install svgalib!" - ! use build && ! use no-helper && linux-mod_src_install - - insinto /usr/include - doins gl/vgagl.h - dolib.a staticlib/libvga.a || die "dolib.a libvga" - dolib.a gl/libvgagl.a || die "dolib.a libvgagl" - dolib.a threeDKit/lib3dkit.a - dolib.so gl/libvgagl.so.${PV} || die "dolib.so libvgagl.so" - local abiver=$(sed -n '/^MAJOR_VER.*=/{s:.*=[ ]*::;p}' Makefile.cfg) - for x in lib3dkit libvga libvgagl ; do - dosym ${x}.so.${PV} /usr/lib/${x}.so - dosym ${x}.so.${PV} /usr/lib/${x}.so.${abiver} - done - - insinto /usr/include - doins src/vga.h gl/vgagl.h src/mouse/vgamouse.h src/joystick/vgajoystick.h - doins src/keyboard/vgakeyboard.h - - if best_version '>=sys-fs/udev-045' ; then - insinto /etc/udev/rules.d - newins "${FILESDIR}"/svgalib.udev.rules.d 30-svgalib.rules - elif best_version sys-fs/udev ; then - insinto /etc/udev/permissions.d - newins "${FILESDIR}"/svgalib.udev.perms.d 30-svgalib.permissions - elif best_version sys-fs/devfsd ; then - insinto /etc/devfs.d - newins "${FILESDIR}"/svgalib.devfs svgalib - fi - - exeinto /usr/lib/svgalib/demos - for x in "${S}"/demos/* ; do - [[ -x ${x} ]] && doexe ${x} - done - - cd "${S}"/threeDKit - exeinto /usr/lib/svgalib/threeDKit - local THREED_PROGS="plane wrapdemo" - doexe ${THREED_PROGS} - - cd "${S}" - dodoc 0-README - cd "${S}"/doc - dodoc CHANGES DESIGN TODO - docinto txt - dodoc Driver-programming-HOWTO README.* add_driver svgalib.lsm -} - -pkg_postinst() { - ! use build && ! use no-helper && linux-mod_pkg_postinst - [[ ${ROOT} != "/" ]] && return 0 - - if [[ -e /dev/.devfsd ]] ; then - ebegin "Restarting devfsd to reread devfs rules" - killall -HUP devfsd - eend $? - elif [[ -e /dev/.udev ]] ; then - ebegin "Restarting udev to reread udev rules" - udevstart - eend $? - fi -} |