Skip to content

Commit

Permalink
taglib: Add examples variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandesign committed Jun 30, 2020
1 parent 2f0e2f5 commit ec344c6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion audio/taglib/Portfile
Expand Up @@ -33,12 +33,26 @@ platform darwin 8 {
cmake.out_of_source yes

configure.args-append ../${distname} \
-DWITH_ASF=On -DWITH_MP4=On -DBUILD_SHARED_LIBS=On
-DWITH_ASF=On \
-DWITH_MP4=On \
-DBUILD_SHARED_LIBS=On \
-DBUILD_EXAMPLES=Off

# asf and mp4 are necessary for Amarok.
# Change to make them optional was reportedly political
# http://lists.kde.org/?l=amarok&m=125338541922769&w=2

variant examples description "Include example programs" {
configure.args-replace -DBUILD_EXAMPLES=Off \
-DBUILD_EXAMPLES=On

post-destroot {
xinstall -m 0755 -W ${build.dir}/examples \
tagreader tagwriter framelist strip-id3v1 \
${destroot}${prefix}/bin/
}
}

variant tests description "Enable running tests" {
depends_build-append port:cppunit

Expand Down

0 comments on commit ec344c6

Please sign in to comment.