mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
makepkg: add LIBRARY variable
This points makepkg to where is library is located. Can be overridden by value in the environment. Signed-off-by: Allan McRae <allan@archlinux.org> [Ashley: Rebased] Signed-off-by: Ashley Whetter <ashley@awhetter.co.uk>
This commit is contained in:
parent
c9ab8a7f6c
commit
31a55df3d9
@ -39,6 +39,8 @@ LIBRARY = \
|
||||
# Files that should be removed, but which Automake does not know.
|
||||
MOSTLYCLEANFILES = $(bin_SCRIPTS)
|
||||
|
||||
libmakepkgdir = $(libdir)/makepkg
|
||||
|
||||
clean-local:
|
||||
$(AM_V_at)$(RM) -r .lib
|
||||
|
||||
@ -54,6 +56,7 @@ edit = sed \
|
||||
-e 's|@localedir[@]|$(localedir)|g' \
|
||||
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
||||
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
||||
-e 's|@libmakepkgdir[@]|$(libmakepkgdir)|g' \
|
||||
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
|
||||
-e 's|@prefix[@]|$(prefix)|g' \
|
||||
-e '1s|!/bin/bash|!$(BASH_SHELL)|g' \
|
||||
|
@ -46,6 +46,8 @@ declare -r confdir='@sysconfdir@'
|
||||
declare -r BUILDSCRIPT='@BUILDSCRIPT@'
|
||||
declare -r startdir="$PWD"
|
||||
|
||||
LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
|
||||
|
||||
packaging_options=('strip' 'docs' 'libtool' 'staticlibs' 'emptydirs' 'zipman' \
|
||||
'purge' 'upx' 'debug')
|
||||
other_options=('ccache' 'distcc' 'buildflags' 'makeflags')
|
||||
|
Loading…
Reference in New Issue
Block a user