Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= microperl
  5. PKG_VERSION:= 5.10.0
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= d2c39b002ebfd2c3c5dba589365c5a71
  8. PKG_DESCR:= Perl without operating-specific functions
  9. PKG_SECTION:= lang
  10. PKG_URL:= http://www.perl.org/
  11. PKG_SITES:= ftp://ftp.cpan.org/pub/CPAN/src/5.0/
  12. PKG_ARCH_DEPENDS:= !avr32 !m68k
  13. DISTFILES:= perl-${PKG_VERSION}.tar.gz
  14. WRKDIST= ${WRKDIR}/perl-${PKG_VERSION}
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,MICROPERL,microperl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. MAKE_FLAGS+= CC="${TARGET_CC}" OPTIMIZE="${TARGET_CFLAGS}"
  20. MAKE_FILE:= Makefile.micro
  21. pre-configure:
  22. $(CP) ./files/uconfig.h.$(CPU_ARCH) $(WRKBUILD)/uconfig.h
  23. do-install:
  24. ${INSTALL_DIR} ${IDIR_MICROPERL}/usr/bin
  25. ${INSTALL_DIR} ${IDIR_MICROPERL}/usr/lib/perl5/${PKG_VERSION}
  26. ${INSTALL_BIN} ${WRKBUILD}/microperl ${IDIR_MICROPERL}/usr/bin/perl
  27. ${INSTALL_DATA} ${WRKBUILD}/lib/strict.pm \
  28. ${IDIR_MICROPERL}/usr/lib/perl5/${PKG_VERSION}
  29. include ${TOPDIR}/mk/pkg-bottom.mk