mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
im: add tests and some extra fixes
- Use system zlib - Link tests dynamically with the libs
This commit is contained in:
@@ -50,9 +50,6 @@ BUILD()
|
||||
{
|
||||
cd src
|
||||
make
|
||||
|
||||
# The build system rebuilds libz, but let's use the system one.
|
||||
rm ../lib/Haiku11/libz.*
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
@@ -72,6 +69,21 @@ INSTALL()
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
ln -s ../../lib/Haiku11 bin/Haiku11/lib
|
||||
cd test
|
||||
make -f ../tecmake.mak MF=im_info
|
||||
! ../bin/Haiku11/im_info `finddir B_SYSTEM_DEVELOP_DIRECTORY`/sample-code/pdflib/data/nesrin.jpg
|
||||
|
||||
make -f ../tecmake.mak MF=im_copy
|
||||
! ../bin/Haiku11/im_copy `finddir B_SYSTEM_DEVELOP_DIRECTORY`/sample-code/pdflib/data/nesrin.jpg nesrin.jpg
|
||||
|
||||
# Requires cd and iup.
|
||||
# make -f ../tecmake.mak MF=im_view
|
||||
# ../bin/Haiku11/im_view
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
im${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libim$secondaryArchSuffix = $portVersion
|
||||
|
||||
Reference in New Issue
Block a user