summaryrefslogtreecommitdiff
path: root/mk/bsd.hacks.mk
AgeCommit message (Collapse)AuthorFilesLines
2004-11-30We already know that bsd.prefs.mk is included before this, so reduce maketv1-5/+3
parser churn by skipping a second include of it. Use PKGDIR in preference to .CURDIR as in other .mk files.
2004-11-14Add a mini-framework to centralise the handling of "hacks" for gettingjlam1-0/+71
particular packages to compile correctly. bsd.hacks.mk auto-includes the hacks.mk file in the current directory. An example hacks file: -------------8<-------------8<-------------8<-------------8<------------- .if !defined(FOO_HACKS_MK) FOO_HACKS_MK= defined ### [Sun Nov 14 02:08:31 EST 2004 : jlam] ### arm GCC 2.95.x optimisation bug tickled when compiling ### lib/funkyfile.c. Require a more recent version of GCC as a ### workaround and patch lib/funkyfile.c (patch-ae). ### .if !empty(MACHINE_ARCH:Marm*) PKG_HACKS+= optimisation GCC_REQD+= 3.0 .endif .endif # FOO_HACKS_MK -------------8<-------------8<-------------8<-------------8<------------- The comment which heads each individual hack should timestamp when the hack was added and describe the bug that requires the hack. By separating out hacks to a separate file, we should be able to simplify package Makefiles so that they are more readable.