Commits

Anonymous committed d3e14dc

Got p1_ipp to build as well.

  • Participants
  • Parent commits 8fad7be
  • Branches conversion-to-cmake

Comments (0)

Files changed (2)

File src/wml_backend/p1_ipp/CMakeLists.txt

+SET(CMAKE_VERBOSE_MAKEFILE ON)
+include(FindPerl)
+IF (NOT PERL_FOUND)
+    MESSAGE ( FATAL_ERROR "perl must be installed")
+ENDIF(NOT PERL_FOUND)
+
+SET(PATH_PERL ${PERL_EXECUTABLE})
+SET(SOURCE "ipp.src")
+SET(DEST "ipp.pl")
+ADD_CUSTOM_COMMAND(
+    OUTPUT ${DEST}
+    COMMAND ${PATH_PERL} 
+    ARGS "-e" 
+    "open I, qq{<\$ARGV[0]}; open O, qq{>\$ARGV[1]}; while(<I>){s{\\@PATH_PERL\\@}{\$ARGV[2]}g;print O \$_;} close(I); close(O);"
+    ${SOURCE}
+    ${DEST}
+    ${PATH_PERL}
+    COMMAND chmod ARGS "a+x" ${DEST}
+    DEPENDS ${SOURCE}
+    VERBATIM
+    )
+# The custom command needs to be assigned to a target.
+ADD_CUSTOM_TARGET(
+    process_perl ALL
+    DEPENDS ${DEST}
+    )

File src/wml_backend/p1_ipp/ipp.src

 ##  Copyright (c) 2000 Denis Barbier, All Rights Reserved. 
 ##
 
-require 5.003;
+require 5.006;
 
 BEGIN { $^W = 0; } # get rid of nasty warnings
 
-use lib "@INSTALLPRIVLIB@";
-use lib "@INSTALLARCHLIB@";
-
 use Getopt::Long 2.13;
 use IO::Handle 1.15;
 use IO::File 1.06;