CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
attic
/
ports
/
opt-cross.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73b47da
)
imlib2: Fixed freetype and X link to clfs instead of host libs/includes
author
Victor Martinez
<pitillo@ono.com>
Wed, 17 Feb 2010 09:35:18 +0000
(09:35 +0000)
committer
Victor Martinez
<pitillo@ono.com>
Wed, 17 Feb 2010 09:35:35 +0000
(09:35 +0000)
imlib2/Pkgfile
patch
|
blob
|
blame
|
history
diff --git
a/imlib2/Pkgfile
b/imlib2/Pkgfile
index 787e3e92629300bdfbd1011a36e6fd119cdc4cac..a6f09a7e8e9ed4a9271b7c6092d8928fa3ee3280 100644
(file)
--- a/
imlib2/Pkgfile
+++ b/
imlib2/Pkgfile
@@
-23,7
+23,9
@@
build() {
export BZ2LIBS="$DEFAULT_LIBS"
export ZLIBLIBS="$DEFAULT_LIBS"
export X_LIBS="$DEFAULT_LIBS -lX11 -lXext -lSM"
export BZ2LIBS="$DEFAULT_LIBS"
export ZLIBLIBS="$DEFAULT_LIBS"
export X_LIBS="$DEFAULT_LIBS -lX11 -lXext -lSM"
-
+ export my_libs="-lfreetype -lz -L$CLFS/usr/lib/X11 -lX11 -lXext -ldl -lm"
+ export my_includes="-I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/X11"
+
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
@@
-34,8
+36,16
@@
build() {
--with-bzip2 \
--with-zlib \
--with-x \
--with-bzip2 \
--with-zlib \
--with-x \
- --without-id3
+ --without-id3 \
+ --x-includes=$CLFS/usr/include/X11 \
+ --x-libraries=$CLFS/usr/lib/X11
+ sed "s|-L/usr/X11R6/lib|-L$CLFS/usr/lib/X11|g" -i imlib2-config
+ find -type f -name 'Makefile*' \
+ -exec sed -e "s|-I/usr/include|-I$CLFS/usr/include|g" \
+ -e "s|-L/usr/X11R6/lib|-L$CLFS/usr/lib/X11|g" \
+ -e "s|-L/usr/lib|-L$CLFS/usr/lib|g" -i {} \;
+
make
make DESTDIR=$PKG install
}
make
make DESTDIR=$PKG install
}