Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
example udev now has a subpkgs called "libgudev". Previously
subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.
And more that I forgot because it's a mega-commit that I've been
working for some days already...
--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
This commit is contained in:
2
srcpkgs/libdrm/depends
Normal file
2
srcpkgs/libdrm/depends
Normal file
@@ -0,0 +1,2 @@
|
||||
abi_depends=">=2.4.6"
|
||||
api_depends="${abi_depends}"
|
||||
16
srcpkgs/libdrm/libdrm-devel.template
Normal file
16
srcpkgs/libdrm/libdrm-devel.template
Normal file
@@ -0,0 +1,16 @@
|
||||
# Template file for 'libdrm-devel'.
|
||||
#
|
||||
short_desc="${short_desc} (development files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
Add_dependency run libdrm
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
|
||||
}
|
||||
99
srcpkgs/libdrm/patches/configure_no_pthread_stubs.diff
Normal file
99
srcpkgs/libdrm/patches/configure_no_pthread_stubs.diff
Normal file
@@ -0,0 +1,99 @@
|
||||
--- configure.orig 2009-09-29 14:24:16.702191110 +0200
|
||||
+++ configure 2009-09-29 14:25:06.772061229 +0200
|
||||
@@ -11416,96 +11416,6 @@ $as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
pkg_failed=no
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREADSTUBS" >&5
|
||||
-$as_echo_n "checking for PTHREADSTUBS... " >&6; }
|
||||
-
|
||||
-if test -n "$PKG_CONFIG"; then
|
||||
- if test -n "$PTHREADSTUBS_CFLAGS"; then
|
||||
- pkg_cv_PTHREADSTUBS_CFLAGS="$PTHREADSTUBS_CFLAGS"
|
||||
- else
|
||||
- if test -n "$PKG_CONFIG" && \
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
|
||||
- ($PKG_CONFIG --exists --print-errors "pthread-stubs") 2>&5
|
||||
- ac_status=$?
|
||||
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
- test $ac_status = 0; }; then
|
||||
- pkg_cv_PTHREADSTUBS_CFLAGS=`$PKG_CONFIG --cflags "pthread-stubs" 2>/dev/null`
|
||||
-else
|
||||
- pkg_failed=yes
|
||||
-fi
|
||||
- fi
|
||||
-else
|
||||
- pkg_failed=untried
|
||||
-fi
|
||||
-if test -n "$PKG_CONFIG"; then
|
||||
- if test -n "$PTHREADSTUBS_LIBS"; then
|
||||
- pkg_cv_PTHREADSTUBS_LIBS="$PTHREADSTUBS_LIBS"
|
||||
- else
|
||||
- if test -n "$PKG_CONFIG" && \
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pthread-stubs\""; } >&5
|
||||
- ($PKG_CONFIG --exists --print-errors "pthread-stubs") 2>&5
|
||||
- ac_status=$?
|
||||
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
- test $ac_status = 0; }; then
|
||||
- pkg_cv_PTHREADSTUBS_LIBS=`$PKG_CONFIG --libs "pthread-stubs" 2>/dev/null`
|
||||
-else
|
||||
- pkg_failed=yes
|
||||
-fi
|
||||
- fi
|
||||
-else
|
||||
- pkg_failed=untried
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-
|
||||
-if test $pkg_failed = yes; then
|
||||
-
|
||||
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
||||
- _pkg_short_errors_supported=yes
|
||||
-else
|
||||
- _pkg_short_errors_supported=no
|
||||
-fi
|
||||
- if test $_pkg_short_errors_supported = yes; then
|
||||
- PTHREADSTUBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pthread-stubs"`
|
||||
- else
|
||||
- PTHREADSTUBS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pthread-stubs"`
|
||||
- fi
|
||||
- # Put the nasty error message in config.log where it belongs
|
||||
- echo "$PTHREADSTUBS_PKG_ERRORS" >&5
|
||||
-
|
||||
- as_fn_error "Package requirements (pthread-stubs) were not met:
|
||||
-
|
||||
-$PTHREADSTUBS_PKG_ERRORS
|
||||
-
|
||||
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||
-installed software in a non-standard prefix.
|
||||
-
|
||||
-Alternatively, you may set the environment variables PTHREADSTUBS_CFLAGS
|
||||
-and PTHREADSTUBS_LIBS to avoid the need to call pkg-config.
|
||||
-See the pkg-config man page for more details.
|
||||
-" "$LINENO" 5
|
||||
-elif test $pkg_failed = untried; then
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
-as_fn_error "The pkg-config script could not be found or is too old. Make sure it
|
||||
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||
-path to pkg-config.
|
||||
-
|
||||
-Alternatively, you may set the environment variables PTHREADSTUBS_CFLAGS
|
||||
-and PTHREADSTUBS_LIBS to avoid the need to call pkg-config.
|
||||
-See the pkg-config man page for more details.
|
||||
-
|
||||
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
||||
-See \`config.log' for more details." "$LINENO" 5; }
|
||||
-else
|
||||
- PTHREADSTUBS_CFLAGS=$pkg_cv_PTHREADSTUBS_CFLAGS
|
||||
- PTHREADSTUBS_LIBS=$pkg_cv_PTHREADSTUBS_LIBS
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
-$as_echo "yes" >&6; }
|
||||
- :
|
||||
-fi
|
||||
-
|
||||
-
|
||||
|
||||
pkgconfigdir=${libdir}/pkgconfig
|
||||
|
||||
18
srcpkgs/libdrm/template
Normal file
18
srcpkgs/libdrm/template
Normal file
@@ -0,0 +1,18 @@
|
||||
# Template build file for 'libdrm'.
|
||||
pkgname=libdrm
|
||||
version=2.4.15
|
||||
distfiles="http://dri.freedesktop.org/libdrm/$pkgname-$version.tar.bz2"
|
||||
build_style=gnu_configure
|
||||
configure_args="--enable-udev --enable-nouveau-experimental-api
|
||||
--enable-radeon-experimental-api"
|
||||
short_desc="Userspace interface to kernel DRM services"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=bcff899a93adce47fabb787380bf636ed6554a4db2b6452bde5cfab15b8ba7de
|
||||
long_desc="
|
||||
This package provides a library which offers a userspace interface
|
||||
to kernel DRM (Direct Rendering Manager) services for access to
|
||||
graphics hardware."
|
||||
|
||||
subpackages="$pkgname-devel"
|
||||
Add_dependency full glibc
|
||||
Add_dependency full udev
|
||||
Reference in New Issue
Block a user